String Tools: Hidden Characters, Sort, Duplicates, Split and Replace

0 characters
Ln: 1 Col: 1
Clean options

Output
0 lines, 0 characters

About this tool

Paste your text to see characters you normally cannot see: spaces, tabs, line breaks, non-breaking spaces, zero-width characters and control codes, then clean them with one click. You can also split the text into rows by new line, tab, comma, pipe, semicolon or any separator, replace one string with another (hidden characters can be typed as U+206F), remove a string everywhere, sort the lines A to Z or Z to A, and count duplicate lines.

Features

Frequently asked questions

How do I sort lines online?

Open Sort lines and press Sort A to Z or Sort Z to A. Numbers are sorted by value, text is sorted alphabetically.

How do I find duplicate lines?

Open Duplicates and press Count duplicate lines. Each duplicated line is listed with its count, highest count first.

What are hidden characters?

They are characters that take no visible space or look like a normal space, such as the zero-width space, the non-breaking space and control codes. They often come from copying text from web pages or documents and can break code, imports and comparisons.

How do I remove a zero-width space?

Paste the text, keep the option for zero-width characters ticked and press Clean string. The cleaned text appears in the output panel.

How do I replace text online?

Open Replace, type the text to find and the new text, then press Replace. The number of replacements is shown. Tick Regular expression for patterns such as digits or spaces.

How do I split a string by comma?

Open Split, choose Comma, and press Split string. Each part becomes one row and the number of rows is shown.