Text cleaner

Paste text copied from a PDF, an email or Word and get a clean version: broken lines joined, double spaces, typographic quotes, invisible characters and more. The result updates as you type.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

0 characters · 0 lines

What to clean

A single line break becomes a space; blank lines stay as paragraph separators.

If a line ends with a letter and a hyphen and the next one starts with a lowercase letter, the word is rejoined ("hyphen-" + "ated" = "hyphenated").

Zero width, BOM, soft hyphen, direction marks. The joiner of composite emoji is kept.

Removes only the tags and decodes & < > "  . The text between tags stays.

•, -, *, 1. and 1). Each item stays on its own line even with "Join lines".

Blank lines
Letter case

Clean text

Paste some text to see the result.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

How to use it

  1. Paste the text into the box: the result appears right away and updates as you type.
  2. Turn the options on or off: join lines, remove double spaces, fix quotes and dashes, strip HTML tags and list bullets.
  3. See how many characters and lines were removed, then copy the result or save it as a .txt file.
  4. With "Use the result as input" you put it back in the box to apply more cleaning steps in sequence.

Frequently asked questions

Why does text copied from a PDF have so many line breaks?

A PDF breaks at the end of each line on the page, not at the end of the sentence. "Join lines" turns those breaks into spaces and leaves blank lines alone, since they separate paragraphs. If some words are split with a hyphen, turn on the rebuild option too.

Can rebuilding hyphenated words go wrong?

Yes, in one case: a genuinely hyphenated compound broken at the end of a line ("socio-" + "economic") loses its hyphen. That is why it only rejoins when the next line starts with a lowercase letter and why it is off by default: always check the result.

What are invisible characters?

Characters you cannot see but that are there: zero-width space, a BOM at the start of a file, soft hyphen, direction marks and the non-breaking space (the one that prevents a line break). They break searches, comparisons and imports, for example an email address that "looks" right. The tool removes them or turns them into normal spaces.

Do composite emoji get damaged?

No: the zero-width joiner that glues emoji together (families, composite flags, professions) is left untouched.

Is the text sent anywhere?

No, cleaning happens in your browser. The share link includes the text only if it is short (up to 20,000 characters) and in the part after the # of the address, which never reaches the server.

Privacy

Everything happens in your browser: no data is sent or saved.

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain