Remove duplicate lines
Remove repeated lines while keeping the first occurrence and original order. Optionally ignore letter case; spaces remain significant. Runs in your browser.
Text & writingTrim 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.
Ready when you are.
Default Trim & collapse spaces turns internal spaces/tabs into one space and three line breaks into two. Try the other Cleaning modes to compare the results below.
apple pear banana kiwi
apple pear banana kiwi
Paste text, choose one of the four Cleaning modes, and run the tool. All modes trim line edges and outer blank space. Compare the result before copying or downloading it.
Cleanup changes formatting and is not reversible without your original. Indentation, tabs, non-breaking spaces and line breaks can be meaningful in code, Markdown and tab-separated data. Zero-width characters are not generally removed.
Choose Remove blank lines to keep non-empty lines separate. Everything on one line replaces all whitespace runs with one space.
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.
Removes leading and trailing whitespace from each line, then trims the whole text. Internal spaces and tabs remain; blank lines between content remain. In the example, the three spaces between apple and pear and the tab before kiwi survive.
The default mode also changes runs of horizontal whitespace, including tabs and non-breaking spaces, to a single ordinary space. Three or more consecutive LF line breaks become two, keeping one blank line between paragraphs. Two line breaks stay two.
Remove blank lines discards empty rows after trimming, but keeps internal spaces and tabs and leaves each remaining row on its own line. Everything on one line replaces every remaining whitespace run with one space: the example becomes apple pear banana kiwi.
Keep a copy of the original. Do not use this as a code formatter: trimming can break Python indentation, and collapsing tabs can destroy TSV columns. Markdown hard line breaks and non-breaking spaces can also carry meaning. CRLF is accepted and multiline results use LF; this is not a general invisible-character remover.
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.
Remove repeated lines while keeping the first occurrence and original order. Optionally ignore letter case; spaces remain significant. Runs in your browser.
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