Text pasted from a PDF, email or web page often arrives broken into short lines, full of double spaces and curly quotes. Switch on what to fix and watch the word and character counts change as you go. It is free, and your text stays on this device.
How to clean up text, step by step
- Paste your text into the Your text box.
- Under Clean-up options, tick what to fix: Remove line breaks, Keep paragraphs, Remove empty lines, Trim each line, Remove extra spaces, Convert tabs to spaces, Straighten curly quotes, Strip HTML tags or Remove emoji and pictographs.
- Read the Clean text as it updates.
- Press Copy, or Use as input to clean the result again.
Why text breaks when you copy it
PDFs store each line of a page separately, so copied text keeps a hard line break at the end of every line. Emails wrapped at a fixed width do the same. Removing line breaks with Keep paragraphs on joins those lines back into flowing sentences but leaves the blank line between paragraphs alone.
What each option does
Remove extra spaces turns runs of spaces into one. Trim each line drops spaces at the start and end of lines. Straighten curly quotes swaps typographic quotes and apostrophes for plain ones, which code, spreadsheets and some forms expect. Strip HTML tags keeps the words from pasted markup and turns entities like & back into characters. Remove emoji removes emoji, flags and pictographs while keeping © and ®. Convert tabs to spaces lets you choose 1, 2, 4 or 8 spaces.
Counts you can trust
Characters are counted the way people read them, so an accented letter or a single emoji counts as one. Word counts include numbers and contractions like "it's" as one word, which matches what most word processors show.
Common uses
- Fixing text copied from a PDF before you paste it into a document or an email.
- Preparing text for a spreadsheet cell or a form that dislikes curly quotes.
- Getting plain words out of a web page snippet.
- Tidying a list copied from a chat or a document.
- Removing double spaces left by typing habits.
For other text jobs, such as changing case or sorting lines, see text tools.
Privacy
The text is cleaned in your browser and your choices are remembered on this device. Nothing is uploaded.
Questions
How do I remove line breaks but keep paragraphs?
Turn on Remove line breaks and Keep paragraphs. Lines are joined, and blank lines between paragraphs stay.
Will it change my words?
No. It only changes spacing, line breaks, quotes, markup and emoji, according to the options you tick.
Can I clean text in several steps?
Yes. Press Use as input to send the clean text back into the box and apply different options.