Text Splitter

Text Splitter is a tool to split any text or string into multiple lines by a delimiter of your choice

All processing happens on the client-side, locally in your browser. No data is uploaded.

Text
Split Text

Settings

How the input is converted. Each is explained below.

The type of split to perform
The character(s) to split the text by (default is space)
The character to be placed between each output chunk (default is newline)
The string to add before each chunk
The characters to add after each chunk

History

  • 2021-10-10Regex & length split, output delimiter, prefix and postfix support
  • 2022-03-27Multi-line Regex support
  • 2018-06-19Tool Launched

Settings explained

Split Type

Use this setting to select the type of split to perform.

Symbol: The character you specify here splits the input text. For example, if you select the comma character, a new chunk is created every time we find a comma. You can even specify multi-characters such as a comma followed by a space.

Regex: The regular expression specified here splits the input into chunks. Use this to do things like extract words from a paragraph of text. Consider the following input: Hola! This right here, is a paragraph of text. The regex: [.,;!?\s]+ will give: Hola / This right here / is a paragraph of text

Length: This setting splits text into chunks of the specified length. The last part can be smaller than this length.

Background

Sometimes you need to split text using a delimiter such as space, comma, semicolon, colon, etc. This tool allows you to do that by letting you choose the delimiter you want.