Tolz.me

Category

Text Tools

Clean up text before you paste it: sort lines, strip invisible characters, and swap em dashes for other punctuation.

Text that arrives from a PDF, a spreadsheet cell, a chat export or an AI assistant rarely arrives clean. It can carry invisible characters that look like nothing at all, trailing spaces, blank lines in strange places, or punctuation that was pasted from a word processor with smart quotes turned on. None of that breaks anything loudly. It just makes searches fail, links break, and lists sort in the wrong order.

The tools in this category deal with that layer of mess. They read the text in your browser, show you what is actually in it, and give you back a cleaned copy. Nothing is uploaded, so you can safely paste a draft, a customer message or a chunk of data you would rather not send anywhere.

Most people only need one of these. Find the symptom you have and open the tool that matches it. If your text has a problem that none of them cover, the invisible character remover is the most useful one to open first, because it shows you the exact characters in the text rather than guessing at them.

How to use each tool

Each of these three tools solves one specific problem with copied text. Here is what they do, how to work with them, and the setting that catches people out.

Invisible Character Remover

Paste the text into the box at the top. The counters under the box update as you type, so you can tell straight away whether there is anything to clean.

Every character is checked against a list of known invisible code points, and the matches are grouped so each one gets a row with a code point and a count. Zero width spaces, byte order marks, soft hyphens, non-breaking spaces and the directional marks all show up this way.

Tick a row to remove that character and untick it to keep it exactly where it is. Two switches sit under the list: one keeps the zero width joiner when it holds an emoji sequence together, and one turns the unusual spaces into normal spaces.

Read the panel below the list, where each hidden character is highlighted in place, then copy the cleaned text from the button at the bottom.

Tip: The position of a hidden character tells you where it came from. A zero width space sitting in every other word usually points at a search engine snippet rather than a mistake you made.

Em Dash Remover

Paste your text into the box. The counters show how many em dashes, en dashes and double hyphens it holds, and how many were replaced.

Pick the replacement from the list: a comma, a semicolon, a colon, a hyphen, a spaced hyphen, nothing at all, or your own text. Each option comes with a short note on when it fits.

Read the two panels at the bottom before you copy. The left one marks the dashes in the original and the right one marks the new punctuation, so you can check every change.

Copy the result. A cleanup switch collapses runs of spaces and drops the space that sits in front of a full stop or a comma, which is the usual reason a comma arrives with a gap behind it.

Tip: Look at the two sides of the dash before you swap it. A comma works when the second side continues the first, a semicolon when it stands on its own, and a colon when it explains the first. Removing the dash with no replacement is worth trying as well.

Sort Lines

Paste the list into the box, one item per line. If it came from a spreadsheet, copy the column first so the list arrives without the column letters down the side.

Choose the order from the dropdown: A to Z, Z to A, Natural order, Shortest first, or Longest first. Then set the options you need, which cover ignoring case, removing duplicates, trimming blanks off each line, and removing empty lines.

The counters under the options show how many lines went in, how many came out, and how many duplicates and blank lines were dropped along the way.

Use the Shuffle button when you want a random order, then copy the result. The output is plain text with one line per item, so it pastes straight into a form, a file, or a spreadsheet cell.

Tip: Use natural order for numbered lists, so item 2 comes before item 10. Sort by length when you are hunting for the line that does not belong. Look at what is in the list before folding duplicates together, because a trailing slash may be the point of an entry.

Common jobs and the tool for each one

  • Find and remove invisible characters

    Lists every zero width space, non-breaking space, soft hyphen and control character in the text, then strips the ones you pick.

  • Sort a list

    Sorts lines alphabetically, numerically, by length or in reverse, with options for case, numbers inside lines and duplicates.

  • Replace em dashes

    Swaps the long dash for a comma, a colon, brackets, a hyphen or a line break so the sentence still reads naturally.

How to choose the right tool

The three tools do not overlap much, so the useful question is which symptom you have.

A search does not match, or a form rejects the text

Start with the invisible character remover. A hidden character inside a word looks identical on screen but makes the string different to a search engine, a spreadsheet formula, or a programming language. The remover shows you exactly where it sits.

Your style guide bans long dashes

The em dash remover handles that. It swaps the long dash for punctuation that fits the sentence and shows you the before and after, so the meaning survives instead of being flattened.

You need a list in a predictable order

Use sort lines. It takes care of the awkward parts, including numbers inside a line, blank lines left over from a document, and duplicates you want to fold together.

More than one thing is wrong

Clean the hidden characters first and sort afterwards. Sorting a list that still holds invisible characters can look wrong, because the hidden character sits at the start of a line and changes what comes first.

Frequently asked questions

Which characters count as invisible?+

The tool looks for zero width space, zero width non-joiner, byte order mark, non-breaking space, soft hyphen, zero width joiner and the directional marks that control text direction. The most common culprit is the zero width space, which is often left behind by website copy buttons and by chat apps.

Why did my search stop matching a word?+

Almost always because one copy of the word carries a hidden character and the other does not. A zero width space between two letters looks identical on screen but makes the two strings different to a search engine, a spreadsheet formula or a programming language. The invisible character remover shows you exactly where it sits.

Is my text sent anywhere?+

No. The work happens in your browser with JavaScript, so the text never reaches our servers. You can disconnect after loading the page and the tools keep working.

Will sorting change the order of my lines?+

Yes, that is the point of it. If you need the original order back, keep a copy before you sort, or use the duplicate removal option on a list where the same line appearing twice is not meaningful.

Does removing em dashes hurt the writing?+

Not if you pick the replacement that fits the sentence. The tool offers a comma, a colon, brackets, a hyphen and a line break, and shows the result as you choose. A long dash after a clause often reads better as a colon or a full stop, and in a headline a comma usually fits where the dash was.

Can the sort handle numbers inside a line?+

Yes. A line such as 'Item 12, shipped' can be sorted by the number inside it rather than by the first word, which is what you usually want for task lists, invoices and numbered notes. There is also an option to treat capital and lowercase letters the same way.