Skip to main content
ToolSmartly

Online Text Cleaner: Remove Extra Spaces, Empty Lines and Accents

Paste text copied from a PDF, an email or a spreadsheet, tick the fixes you want and get clean text back: extra spaces, empty lines, line breaks, tabs and accents. The result updates as you type and nothing is sent to a server.

Text to clean

0 characters · 0 lines

Spaces
Lines and characters

Cleaned text

0 characters · 0 lines

How to clean and reformat text

The tool applies the selected fixes in a fixed order, from the narrowest to the broadest, and shows the result below the original text. Everything runs in your browser: your text is neither sent nor stored.

How to use it

  1. Paste your text in the first box.
  2. Tick the fixes you want, or click Full clean-up to turn on the space and empty-line fixes.
  3. Choose what happens to line breaks: kept, removed or one sentence per line.
  4. Copy the result, or click Use as source text to apply more fixes on top.

What each option does

OptionBeforeAfter
Tabs and non-breaking spacesName⇥SurnameName Surname
Multiple spacessome␣␣␣textsome␣text
Leading and trailing spaces␣␣Hello␣Hello
Empty lines: removedtwo paragraphs separated by three empty linestwo consecutive lines
Empty lines: one between paragraphstwo paragraphs separated by three empty linestwo paragraphs separated by one empty line
Line breaks removedtext broken at every line (copied from a PDF)a single paragraph
One sentence per lineHello. How are you? Fine!three lines
AccentsÉléonore, crème brûléeEleonore, creme brulee

⇥ = tab, ␣ = space. Fixes are applied in the order of the table. “One sentence per line” breaks after every full stop, exclamation mark, question mark or ellipsis followed by a space, so an abbreviation such as “Mr. Smith” is split too.

Common use cases

  • Text copied from a PDF: lines are broken mid-sentence. Choose “Line breaks: removed” to get a continuous paragraph back.
  • A list exported from a spreadsheet: tabs and spaces are left at the end of cells. Tick tabs, multiple spaces and leading and trailing spaces.
  • IDs, file names or slugs: remove accents to avoid encoding problems.
  • Proofreading or translation: “One sentence per line” makes sentence-by-sentence comparison easier.

Frequently asked questions

How do I keep paragraphs while removing extra empty lines?

Choose “Empty lines: one between paragraphs”. Runs of empty lines (or lines containing only spaces) are reduced to one, and empty lines at the start and end of the text are removed.

Is my text sent to a server?

No. All processing is done by JavaScript in your browser: the text is neither transmitted nor stored.

Why do letters such as “œ” or “ß” stay the same when I remove accents?

The option removes diacritics (accents, cedillas, umlauts): “é” becomes “e” and “ç” becomes “c”. Ligatures and specific letters such as “œ”, “æ” or “ß” are not accented letters and are left as they are.

Are non-breaking spaces handled?

Yes, with the “Tabs and non-breaking spaces” option: they are replaced with regular spaces, which the “Multiple spaces” option can then collapse.

Can I chain several clean-ups?

Yes. All ticked options are applied together; the “Use as source text” button replaces the original text with the result so you can apply other settings next.