Strip extra spaces, line breaks, empty lines, duplicates and HTML tags in seconds. Clean any messy text without uploading it anywhere.
Clean your text online: remove extra spaces, line breaks, empty lines, duplicates, HTML tags and more. Free and private.
Runs of two or more spaces or tabs collapse into a single space.
CR, LF and CRLF endings are all replaced with a single space, so text from Windows, macOS and Linux behaves the same.
Lines that are empty or contain only spaces and tabs are dropped completely.
The first occurrence of each line is kept and every later exact duplicate is removed.
Lines are compared with English collation and case-insensitively, so Mango sorts between banana and zebra rather than jumping to the front.
Everything between < and > is removed, leaving only the visible text content.
Text is split into grapheme clusters before reversing, so 👨👩👧 family emoji, flags and skin-tone modifiers stay whole.
Every line gets a sequential number followed by a separator, starting at 1.