Remove Formatting from Text
Remove formatting from text: paste it to clear curly quotes, hidden spaces and stray line breaks, then copy plain text.
Before: 0 characters, 0 words, 0 lines
After: 0 characters, 0 words, 0 lines
Paste or type text to clean it.
Why pasted text keeps causing trouble
Hidden characters survive
Bold and color stay behind when you paste into a text box, but no-break spaces, zero-width marks and curly quotes come along and look like ordinary text.
They break real work
A hidden space stops a search from matching, a sort from ordering and a command from running, and nothing on screen shows why.
Seeing them is the fix
The counts below the boxes show how much changed, so you remove them on purpose instead of by guessing.
What this tool does and does not change
A plain text box receives only the text part of a paste. Fonts, bold, italics, colors and links never arrive, because a text box has nowhere to keep them. What does arrive are characters that look like ordinary text, and the options here clean those. Your words, spelling and letters are never rewritten.
Your original stays in the first box and the result appears in a second one, so you can change an option and compare. This page takes up to 500,000 characters, counted by code points, and checks that limit before it changes anything. For HTML source code, use HTML to Text instead.
Exact characters it touches
- Straight quotesOn by default. U+2018 and U+2019 become an apostrophe, and U+201C and U+201D become a straight double quote. Guillemets, primes and low quotes are left as they are.
- Normal spacesOn by default. U+00A0, U+2007, U+202F each become one normal space. A thin space is not in this set.
- Invisible charactersOn by default. U+200B, U+2060, U+FEFF, U+00AD are removed: the zero-width space, the word joiner, the byte order mark and the soft hyphen.
- Joiners stayU+200C, U+200D are never removed. They join the parts of an emoji and keep letters correct in scripts such as Persian and Devanagari.
- Collapse spaces and tabsOff by default. A run of spaces and tabs becomes one space and each line is trimmed. A single tab stays a tab.
- Line endingsWindows and old Mac line endings are turned into a plain line feed before anything else happens.
- Keep line breaksThe default. Every line stays where it was.
- Limit blank lines to oneRuns of blank lines become one blank line, and blank lines at the start and end are dropped.
- Join all linesEvery line is trimmed and the lines are joined with one space, so the text becomes a single paragraph.
Common Use Cases
Worked example
A line holds a curly-quoted word, a no-break space, a zero-width space, a soft hyphen and a Windows line ending. With the defaults it comes out as She said "ready" to go then a line feed then Next line. The count goes from 35 characters to 32.
Word to a form or CMS
Curly quotes and no-break spaces from a document often break a form field or a template.
Chat or email to a spreadsheet
Clean a pasted line before it goes into a cell, so a filter finds it.
PDF copy with broken lines
Join all lines turns text that was cut at every line end back into one paragraph.
Code and command lines
Curly quotes make a command or a config value fail. Straight quotes fix that.
How to remove formatting from text
Paste your text
Paste it into the first box. The result updates as you paste or type.
Pick the options
Turn each clean-up on or off and choose what happens to line breaks.
Read the counts
Compare characters, words and lines before and after, and read the line that lists what changed.
Copy or download
Copy the plain text or download it as a text file.
Benefits
Nothing is rewritten
Only the listed characters change. Words, letters and spelling come through exactly as you pasted them.
You see what changed
Counts before and after, and a line that says what was replaced.
Every option can be turned off
Keep curly quotes for typeset writing, or keep line breaks for a poem.
Tips
- •Typeset writing. Turn Straight quotes off if the curly ones are intended.
- •Forum posts. Use Limit blank lines to one to keep paragraphs without big gaps.
- •PDF copy. Use Join all lines only when the text was cut at every line end.
- •HTML source. If you have markup rather than pasted text, use HTML to Text.
Paste your text and pick the options
Paste your text, pick what to clean and copy the plain text. For spacing alone, try Remove Extra Spaces or the Line Break Remover.
To see which hidden characters are in a string, try the Unicode Normalizer or copy a blank one from Invisible Character.
Related tools
Frequently Asked Questions
Does it remove bold, italics and fonts?
A text box only receives text, so bold, italics, fonts and colors do not arrive when you paste. The options clean the hidden characters that do.
Will it change my words?
No. It only touches the characters listed on this page, and letters and spelling are never changed.
Why are the joiners not removed?
U+200C, U+200D join emoji and keep Persian and Indic text correct, so they stay.
Is there a size limit?
Yes, 500,000 characters, counted by code points. Longer text is refused with a message, never cut.
Does it work on HTML code?
This tool treats a paste as text. For markup, use HTML to Text.