Skip to the editor
RU

Remove line breaks and clean up text

Fix text copied from PDF or email: line breaks, double spaces, empty and duplicate lines, HTML tags, smart quotes.

How it works

  1. Paste messy text

    Text copied from PDF, email or a website.

  2. Tick what to fix

    Line breaks, double spaces, HTML tags, duplicates, sorting.

  3. Apply

    One pass fixes everything; Undo brings the original back.

Questions & answers

Why does text from PDF have broken lines?

PDF stores each visual line separately. “Remove line breaks” joins them back into paragraphs while keeping empty lines between paragraphs.

Can I remove duplicate lines?

Yes — tick “Remove duplicate lines”. The first occurrence stays, the order is kept.

Is find & replace with regex supported?

Yes. Switch on “Regex” to use JavaScript regular expressions, e.g. \d+ for numbers; $1 works in the replacement.

Is my text sent anywhere?

No. Textkit works entirely in your browser — nothing is uploaded, stored on a server or logged. After the first visit it even works offline.

More tools