Remove duplicate lines or sort a list A→Z, Z→A, numerically or at random
Trim / Clean Lines
Use Trim / Clean Lines
What it does
Strip leading and trailing whitespace from every line and drop blank lines, each step switchable. Use it on IOC lists copied from PDFs, chats or web pages before you deduplicate or import them.
It runs entirely in your browser: nothing you enter is uploaded.
Example
Messy domain list
login.example.com
cdn.example.net
verify.example.org login.example.com
cdn.example.net
verify.example.orgReturns three clean lines (login.example.com, cdn.example.net, verify.example.org): the indents, the tab, the trailing spaces and both blank lines are gone.
FAQ
What counts as whitespace?
Everything JavaScript treats as whitespace: spaces, tabs, no-break spaces (U+00A0), the other Unicode space characters and the byte-order mark. Spaces inside a line are never touched, and each of the three options can be switched off.
Does it remove zero-width characters?
No. The zero-width space (U+200B), zero-width joiner and similar characters are not whitespace and stay in place. They are often used to break up phishing keywords, so check suspicious text with the Invisible Character Detector.
Is my text sent anywhere?
No. Cleaning happens in your browser and nothing is uploaded.