Text Cleaner
The text cleaner fixes messy text copied from PDFs, web pages or social media: it collapses extra spaces, removes empty lines, joins broken lines and strips invisible characters and, if you like, emoji. Steps run in a fixed order and a summary says what was removed. Everything runs in your browser.
Cleaning happens in your browser; the text is never sent to a server.
Steps (applied top to bottom in this order)
How to clean text
- Paste the text into the box.
- Tick the steps you need; the defaults already fix the most common problems.
- For PDF text choose “Keep paragraphs, join lines” under line breaks.
- Check the summary above the result.
- Copy the clean text or move it back to the input.
Tips
- Your chosen steps are remembered in this browser.
- The input never changes unless you move the result back; “Reset to defaults” restores the settings.
- Continue with the [word counter](/en/word-counter/) or [sort lines](/en/sort-lines/); your text comes along.
What each step does
Steps always run in this order, so the same text and settings always give the same result.
- Remove HTML tags: strips tags and script blocks and decodes entities such as &. Nothing is executed.
- Remove invisible characters: zero-width spaces, Hangul fillers, Braille blanks, BOM and soft hyphens. The emoji joiner (ZWJ) is kept by default.
- Remove emoji: removes whole sequences including skin tones, flags and families.
- Fancy letters to plain: turns 𝐁𝐨𝐥𝐝, 𝓼𝓬𝓻𝓲𝓹𝓽 and ⓑⓤⓑⓑⓛⓔ letters back to plain letters and lists unknown ones.
- Tabs and extra spaces: collapses runs of spaces, optionally including non-breaking and typographic spaces.
- Punctuation spacing: removes spaces before punctuation and adds one after, leaving links, decimals and times alone.
- Trim, empty lines and line breaks: trims each line, collapses or removes empty lines and joins broken lines.
- Find and replace: plain text or regex; plain search follows Turkish case rules.
Before and after
Generated with this page’s cleaner. ⏎ marks a line break, [ZWSP] a zero-width space and [ㅤ] a Hangul filler.
| Case | Before | After |
|---|---|---|
| Text copied from a PDF | Bu metin bir PDF’ten ⏎ kopyalandı ve satırlar ⏎ yarıda bölündü . | Bu metin bir PDF’ten kopyalandı ve satırlar yarıda bölündü. |
| Instagram caption (4 invisible characters, 1 empty lines removed) | Yeni gönderi[ZWSP][ZWSP] ✨ ⏎ [ㅤ] ⏎ [ㅤ] ⏎ #yazı #stil | Yeni gönderi ✨ ⏎ ⏎ #yazı #stil |
Things to watch out for
Removing the emoji joiner (ZWJ) splits family and profession emoji, so it is kept by default. Invisible characters you added on purpose are removed too; see invisible character.
The fancy-to-plain option may turn some Greek and Cyrillic letters into Latin ones; keep it off for Greek or Russian text. Hyphenated line breaks are not joined automatically.
Very long texts may take a moment. Continue with the case converter or add emoji from the emoji page.
Text cleaner FAQ
How do I remove line breaks from PDF text?
Paste it and choose “Keep paragraphs, join lines”. Choose “Remove all” for a single line.
Why remove invisible characters?
Hidden characters copied with text fill character limits, break searches and upset some forms. Removing them keeps the text looking the same but shorter.
Does removing emoji damage the rest of the text?
No. Each emoji is removed as a whole sequence; letters and text symbols such as © stay. Leftover double spaces are collapsed if that step is on.
Can I turn fancy text back into normal text?
Yes, with “Fancy letters to plain”. Unknown characters are listed. Do not use it on Greek or Cyrillic text.
How is it different from Excel’s TRIM?
TRIM removes leading, trailing and repeated spaces but not non-breaking spaces or invisible characters. This tool also handles empty lines, line breaks, emoji and HTML.
Related tools
Invisible Character
Copy invisible characters for blank names, empty messages and spaces in nicknames in one click, and test what you pasted.
Word Counter
Paste your text to see words, sentences, paragraphs and reading time instantly. Handles Turkish apostrophes correctly; your text stays on your device.
Case Converter
Convert text to UPPERCASE, lowercase, Title Case or Sentence case, with correct Turkish İ/ı handling, and copy it in one click.
Sort Lines
Sort a list A–Z or Z–A with correct Turkish order, shuffle it, sort by length or number and remove duplicate lines. Free and fast.
Copy and Paste Emojis
Search smileys, hearts, animals, flags and more by name. Copy the emoji you like with one tap and paste it into a message or bio.