Text Cleaner

Remove line breaks, extra spaces, duplicate lines and timestamps from pasted text or a transcript, in your browser. Switch on what you need, see how many changes each switch made, then copy or download the clean text. It also strips HTML and Markdown, emojis and speaker labels, sorts lines and fixes quotes. The text is cleaned in your browser and is not uploaded.

Quick start

Cleaned in your browser and not uploaded. The draft stays in this browser until you press Clear. Up to 100,000 characters.

Lines and spaces
Sort lines
Transcripts
Formatting
Quotes
Case

Want to see exactly what changed? Paste the original and the cleaned text into the Diff Checker.

What the text cleaner changes, and what it never changes

Each switch does one job, and they always run in the same order: markup first (HTML, Markdown), then transcript clutter (timestamps, speaker labels), emojis and quotes, then spaces and lines (trim, collapse, duplicates, sort), then line breaks, empty lines and finally case. Next to every switch that is on, a count shows how many changes it made, so you can see at once if a switch did nothing or more than you expected.

It never rewrites, corrects or translates a word. It only removes spacing, line breaks, markup, timestamps, labels and emojis you chose, swaps quote marks, sorts lines or changes capital letters. The result is plain text in a box you can copy or download as a .txt file.

Remove line breaks from text copied from a PDF

Text copied from a PDF keeps a line break at the end of every printed line, so a paragraph pastes as a column of short lines. Remove line breaks joins them with a single space: "The quote is valid" and "for 30 days." on two lines become "The quote is valid for 30 days."

Keep paragraph breaks is on by default: a blank line between paragraphs stays, so the paragraphs survive. If the PDF had no blank lines between paragraphs, everything joins into one; add an empty line where each paragraph starts and clean again. A word split with a hyphen across two lines keeps its hyphen, so check those by hand.

Remove duplicate lines from a list

Paste a list with one entry per line (email addresses, leads, part numbers, names) and switch on Remove duplicate lines. The duplicate line remover keeps the first time each line appears and drops the repeats; spaces at the ends of a line do not count, and capital letters do not count either unless you tick Case-sensitive.

Blank lines are never treated as duplicates, so the spacing of a text stays. Sort A to Z or Z to A puts the list in order, with numbers in natural order (item 2 before item 10). The Clean up a list button does all of this in one go: trim, collapse spaces, remove empty lines, remove duplicates, sort A to Z.

Clean up a transcript before you paste it

Transcripts from meeting apps and caption files come with clutter. Remove timestamps takes out [00:01:23] and (00:01) anywhere, a timestamp at the start of a line such as 0:01:23.456, a time after a speaker name on its own line, and in caption files the WEBVTT header, the cue numbers and the timing lines with -->. A time of day inside a sentence, such as "we meet at 10:30", stays.

Remove speaker labels takes out a name or label of up to four capitalised words followed by a colon at the start of a line (Speaker 1:, SPEAKER_02:, Anna:, Dr. Lee:) and lines that hold only a label such as Speaker 3. Any capitalised word plus a colon at the start of a line counts, so a line such as "Note: call back" loses its label too: read the result before you send it. Repeated lines are kept by the transcript button, because "Yes." twice is real speech.

Working with caption files? VTT to Text turns VTT or SRT into a transcript, TXT to SRT goes the other way, the Diff Checker shows what changed between two versions, and the Title Case Converter fixes headings.

Sources

Cleaning a transcript? See verbatim transcription, how to transcribe an interview, an interview transcription example, CRM data entry.

Start from a clean transcript

The messiest texts people paste here are transcripts and meeting notes. Record the call or meeting with ParrotNotes and you get the transcript and a summary, ready to read and to paste into an email or your CRM. Free for 100 minutes of recording a month.

Get Started Free

Related tools

Text cleaner FAQ