Whitespace cleaner
Trim line edges, collapse spaces and tabs, remove blank lines or join text onto one line. Choose the cleanup you need and review the local result.
Text & writingRemove repeated lines while keeping the first occurrence and original order. Optionally ignore letter case; spaces remain significant. Runs in your browser.
Ready when you are.
With default case-sensitive matching, Pear and pear are different. Enable Ignore letter case to get Pear followed by apple: the original first spelling survives.
Pear pear Pear apple
Pear pear apple
Paste one item per line. Leave Ignore letter case off for exact matching, or enable it to compare lowercase versions. Run the tool, review the surviving lines and copy or download them.
No automatic trimming, sorting, Unicode normalization or fuzzy matching. Blank lines count as a value. Clean whitespace first only when those spaces are not meaningful.
Only when Ignore letter case is enabled. The first occurrence is retained; spacing remains significant. Clean whitespace first when spaces should not distinguish lines.
No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.
Yes. No account, subscription or usage credits are required.
Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.
By default, Pear and pear remain separate. Ignore letter case compares JavaScript lowercase values but returns the original first line. It does not perform fuzzy spelling correction, locale-specific case folding or accent removal.
A line containing apple and a line containing apple followed by a space remain distinct. Composed é and an e followed by a combining accent can look identical but remain different strings. The tool does not normalize Unicode. Run whitespace cleanup first if line-edge spaces are accidental.
The first occurrence stays in its original position; the tool does not sort. Repeated empty lines collapse to one empty line at its first position. CRLF input is accepted and results use LF. Work with one record per line: a CSV cell containing a line break is not handled as a single record here.
Build a list-cleaning workflow: trim unwanted whitespace → keep unique lines → sort the result. Deduplicate before sorting when the original first occurrence matters. Copy your result before switching tools; input is not transferred automatically.
Choose the right text & writing workflow before combining tools.
Something not right? Report a problem with this tool. Include the steps, but never passwords or private input.
Trim line edges, collapse spaces and tabs, remove blank lines or join text onto one line. Choose the cleanup you need and review the local result.
Text & writingSort lines alphabetically or in natural number order, with optional reverse sorting. Compare item2 and item10 locally without uploading your list.
Text & writingCount words and characters, inspect selected text, estimate speaking time and find repeated phrases. Set writing goals; your draft stays local.
Text & writing