Clean text
Spaces, line breaks, emojis and HTML
No database: AIMRAN doesn't store your files, text or results
What is Clean text?
When you copy text from a PDF, a website, an email or a document, it often comes with junk: extra spaces, line breaks in the middle of sentences, HTML tags or invisible characters that cause problems when you paste it elsewhere.
This tool cleans it up in one click. Turn on the cleanups you want and see how many changes each one made.
How to use it
- Paste the text you want to clean.
- Turn rules on or off in the What to clean panel.
- Check the number of changes for each rule.
- Copy or download the clean text.
Advantages
- Ten combinable cleanup rules, with a change count per rule.
- Removes invisible characters that break forms and searches.
- Strips numbering and bullets from pasted lists.
- Instant result as you paste.
Use cases
- Join text copied from a PDF into one paragraph when it comes with line breaks in the middle of sentences.
- Remove HTML tags and entities like from text copied out of a web page's source or an email.
- Get rid of zero-width and non-breaking spaces that make a form, a search or a pasted password fail.
- Strip numbering, bullets and duplicate lines from a list pasted from Word before reusing it.
Technical details
Available rules: double spaces and tabs to a single space; spaces at the start and end of lines; multiple line breaks (keeps at most one blank line) or all line breaks (joins the text into one paragraph), which are mutually exclusive; emojis, including those composed with skin-tone modifiers, ZWJ and flags (Unicode properties Extended_Pictographic and Regional_Indicator); HTML tags and entities such as or &; invisible characters (zero-width spaces, BOM, direction marks, soft hyphens) and non-breaking spaces, which become regular spaces; curly quotes “ ” ‘ ’ « » to straight quotes; duplicate lines; and list numbering or bullets (1. 2) a) - • * and Roman numerals). By default, the spaces, multiple line breaks and invisible characters rules are on.
Frequently asked questions
How do I remove line breaks from text copied from a PDF?
Paste the text and turn on All line breaks. Everything will become one continuous paragraph.
How do I remove double spaces?
Keep the Double spaces rule on: it turns several consecutive spaces or tabs into a single one.
Can I remove emojis from a text?
Yes. Turn on the Emojis rule and all of them are removed, including flags and emojis with skin tones.
What are invisible characters?
Characters you can't see but that are in the text, such as zero-width spaces or the BOM. They can break searches, passwords or forms.
Related tools
- Text case converter · UPPERCASE, Title Case, camelCase, kebab-case…
- Sort lines · Alphabetical, natural, by length, without duplicates and numbered
- Find and replace · Several rules at once, with or without regular expressions
- Extract text · Copy all the text from the PDF
- AI text detector · Estimate with suspicious sentences highlighted
- AI humaniser · Rewrites text so it sounds natural