a apiary.
← All tools

Text / BROWSER UTILITY

Remove Duplicate Lines

Clean up repeated lines while keeping your original order.

Processed locally in your browser. Your data is not uploaded.

Comparison options
Whitespace
Send output to…

Transfers stay in memory on this site. The destination does not run automatically. Copy is available if the new tab is blocked.

Good to know

The first occurrence of each line is kept in its original position. Line edges are trimmed by default; uncheck Remove whitespace to preserve them. Internal spaces remain significant. Repeated blank lines are also deduplicated. Turn off case-sensitive comparison to treat Apple and apple as the same value.

Example: apple → pear → apple becomes apple → pear. One duplicate removed.