Back to Tools

Unique Lines

Processed Locally

Remove duplicate lines and keep only unique lines. Options for case sensitivity and preserving order

Options

Frequently Asked Questions

By default, the tool compares lines case-insensitively after trimming whitespace. So "Apple", " apple ", and "APPLE" are considered duplicates. Enable "Case Sensitive" to treat them as different lines.
When enabled, unique lines appear in the same order as their first occurrence in the input. When disabled, lines are sorted alphabetically. For example, if "Banana" appears before "Apple", with preserve order on, "Banana" stays first.
Yes, empty lines are treated like any other line. If you have multiple empty lines, only one will be kept (as it's unique). Use "Trim whitespace" to normalize lines before comparison.
The tool supports files up to 5MB. For very large files (millions of lines), processing may take a few seconds but will complete in your browser without uploading data.