Transcript Cleaner
Operator: Abdulla Al Fahad. How tools are built and checked
A caption file is built for a video player, not for a reader. Every few seconds there is a cue number, a line such as 00:00:04.200 --> 00:00:06.000, and two short lines of text, and auto-generated captions often repeat the previous line before adding a new one so the words appear to scroll. Meeting apps add their own clutter: a speaker name and a timestamp above every sentence. The four-cue example further down this page goes from 41 words to 25 once it is cleaned.
This cleaner turns that into prose. Paste a transcript or open a .vtt, .srt or .txt file, and the output updates as you change the options: timestamps and cue numbers removed, rolling repeats collapsed, and each speaker's consecutive lines joined into one paragraph that starts with their name. The result can be copied or saved as plain text or Markdown, with word counts before and after and a token estimate for when you plan to paste it into an AI chat.
Key features
- WebVTT, SRT and plain-text meeting transcripts, detected from the content
- Speaker names from <v> voice tags, speaker-and-time lines and "Name:" prefixes
- Timestamps and cue numbers removed, or kept as [00:01:02] at the start of each line or paragraph
- Consecutive lines from one speaker merged into paragraphs, with long turns split at a sentence end
- Rolling and growing caption repeats collapsed to one copy
- Optional removal of stand-alone um, uh, erm and uhm
- Words before and after, repeated and filler words removed, and an estimated token count
- Copy button and .txt or .md download
Detecting the format, speakers and timestamps
Three kinds of input are recognised from the text itself, whatever the file is called. A file that starts with WEBVTT is read as WebVTT: the header block and any NOTE, STYLE and REGION blocks are skipped, cue identifiers are dropped, and a <v Ana> voice tag names the speaker of that cue. Text without the WEBVTT header but with timing lines of the form 00:00:01,000 --> 00:00:03,000 in its first 64 KB is read as SRT, with its cue numbers dropped. Anything else is plain text, read line by line.
In plain text, a speaker can be named in three ways: on a line of its own followed by a time ("Ana Smith 0:03" with two or more spaces, a tab, a dash, a pipe or brackets before the time), as "[Ana Smith] 10:23:45", or at the start of a line as "Ana: text". The first two count as speaker lines only when the file is laid out that way: the same name appears on two or more of them, or at least two lines in the same style make up 30% or more of the text. A lone "Agenda item two - 12:30" in a list of "Name: text" lines therefore stays in the text. A line holding nothing but a time, as you get when copying a transcript panel next to a video, marks when the following line starts. A time in square brackets or parentheses at the start of a line is always treated as a timestamp; a bare "0:04 text" only counts as one when at least half the lines begin that way.
Input can be up to 10 MB, pasted or opened. Subtitle files made with older desktop tools are sometimes saved in Windows-1252 instead of UTF-8. When an opened file is not valid UTF-8, the cleaner decodes it as Windows-1252 and says so above the options, so a name like José in such a file comes through intact. Markdown output writes each turn as "**Ana:** paragraph" with blank lines between turns, and plain text writes "Ana: paragraph". Downloads end in .md or .txt to match.
How it works
Caption files are first split into cues. Inside each cue, styling tags such as <i>, <b>, <c.yellow> and <font color="...">, the per-word timestamps that auto-captions insert (<00:00:01.500>), and SRT positioning codes such as {\an8} are removed. The entities &, <, > and become the characters they stand for. A cue whose lines start with >> or with a dash and a space is split at each marker, because broadcast captions and film subtitles use those marks when a different person starts talking.
Speaker labels are then resolved. "Name: text" is only read as a label when at least half of the cues or lines without another label start that way, so one "Note: the slides are online" in a lecture is left as text. A name may have up to six words and 60 characters and must contain a letter. A line or cue with no label of its own is given to the person who spoke last, which matches captions that only name a speaker when the speaker changes; after a >> or dash marker with no name, the speaker is unknown until the next name appears.
Collapsing compares each cue with the cue just before it, as long as both belong to the same speaker. An identical cue is dropped. If the cue begins with lines that end the previous cue, as in two-line roll-up captions, those lines are dropped. If the cue begins with every word of the previous cue, or with every word of its last line when that line has at least two words, as in captions that grow word by word, that part is dropped. Comparison is exact, including letter case and punctuation.
Filler removal looks at whole words only. An um, uh, erm or uhm in any letter case is removed together with a comma after it; a full stop or question mark attached to it moves to the word before, and the next word gets a capital letter when the filler began the sentence. Merging then joins one speaker's consecutive lines with spaces. A new paragraph starts when the speaker changes, after a blank line in plain text when the next line has no label, after a turn marker, and at the first sentence end once a paragraph reaches about 120 words; such a continuation paragraph is written without repeating the name.
Common use cases
- Turning a recorded team meeting's caption file into minutes you can edit
- Preparing a lecture or webinar transcript to paste into an AI chat for a summary, with a token estimate first
- Quoting an interview accurately in an article without the timing lines
- Making a readable script from the auto-generated captions of your own video
- Archiving customer calls as searchable text grouped by speaker
How to use this tool
- Paste the transcript, use Open file for a caption or text file, or load the short meeting example with Try a sample.
- Check the Read as and Speakers found boxes in the preview. If the names are missing or wrong, see the pitfalls below.
- Set the options. The first four are on by default; tick Remove filler words if you want um and uh gone.
- Choose Markdown or Plain text and read the cleaned text in the preview.
- Press Copy cleaned text, or download it as .md or .txt.
Example
standup.vtt (4 cues, the second repeats the first)
WEBVTT
00:00:00.500 --> 00:00:02.000
<v Dana Okafor>So the delivery van
00:00:02.000 --> 00:00:04.200
<v Dana Okafor>So the delivery van
breaks down every Tuesday.
00:00:04.200 --> 00:00:06.000
<v Luis Ortega>Um, that's the 2019 one?
00:00:06.000 --> 00:00:07.500
<v Dana Okafor>Yes. It has 160,000 kilometres on it.Markdown with Remove filler words ticked (41 words before, 25 after)
**Dana Okafor:** So the delivery van breaks down every Tuesday.
**Luis Ortega:** That's the 2019 one?
**Dana Okafor:** Yes. It has 160,000 kilometres on it.Tips for best results
- Untick Remove timestamps and cue numbers when you need to find a quote in the recording later; each paragraph then begins with the time it starts.
- Untick Merge consecutive lines to check speaker attribution line by line before you trust the merged version.
- If copying from a meeting app loses the speaker names, try its .vtt download instead; names written as voice tags or as Name: prefixes are picked up.
- Compare the token estimates before and after. For the four-cue example on this page they fall from about 87 to about 37, which matters when a chat has a length limit.
- Fix misspelt speaker names in the output with find and replace, since every turn uses the same spelling.
Common pitfalls
Auto-generated captions usually have no punctuation and no speaker names, so the cleaned text is one unpunctuated stream split into paragraphs of roughly 120 words. The tool does not add punctuation or guess who is speaking.
Collapsing cannot tell a rolling caption from a line that was really said twice in a row. A song chorus or a repeated "Hello? Hello?" in consecutive cues may lose its second copy. Turn the option off for lyrics.
Names written on a line of their own with no time after them, as some document exports do, are not recognised as speakers and stay in the text as ordinary lines. An excerpt with only one "Name 0:03" line is treated the same way, because one such line is too little to tell a speaker line from an agenda heading.
Sound labels such as [Music], [Applause] or (laughs) are kept, because they are part of the caption text. Remove them with find and replace if you do not want them.
Only the four fillers listed are removed, and only as separate words. "Like", "you know" and "hmm" stay, because removing them blindly would also delete real words.
Common errors and how to fix them
- "... holds binary data, so it is not a caption or transcript text file."
- Caption and transcript text never contains a byte of value zero, yet this file has one within its opening 8 KB, which points to a Word document, a recording or another binary file rather than a .vtt, .srt or .txt file. Export the transcript from the meeting or video app as .vtt, .srt or .txt, or copy its text and paste it in.
- The file or pasted text is over 10 MB.
- Split the transcript into parts, by hour for example, and clean each part separately. A text editor can cut a caption file at any blank line between cues.
- "No spoken text was found."
- The input has timing lines but nothing under them, or only a header. Check that the file is the full caption file and not a chapter or timing list.
- Speakers found shows none, although the transcript names people.
- The names are in a layout the cleaner does not read, such as a name alone on one line and the speech on the next. Put the transcript into "Name: text" lines with find and replace, or try the meeting app's .vtt download, in case it writes names as voice tags or Name: prefixes.
Best practices
- Read the first few paragraphs of the output against the recording before relying on speaker attribution.
- Keep the original caption file; the cleaned text cannot be turned back into timed captions.
- Remove filler words for reading copies, but keep them in transcripts used as evidence or research data.
- Treat token counts as estimates and leave headroom below a model's limit.
Rolling captions, and why they double the word count
Live and auto-generated captions are often shown as two lines that scroll upward. Each new cue repeats the line that was at the bottom, now moved to the top, and adds a new bottom line. Read as text, every line appears twice. Other captioning systems grow one line word by word, so the same sentence appears three or four times, each copy a little longer.
Removing the overlap at line level handles the first style, and comparing the start of each cue with the whole previous cue handles the second. In the example above, the first cue's four words reappear at the start of the second cue, so the repeated caption words removed figure shows 4.
How the word and token figures are counted
Words are counted as space-separated tokens holding at least one letter or digit, so 00:00:04.200 counts as a word in the before figure and --> does not. That is why caption files lose so many words when timestamps are removed. Text in Chinese, Japanese or Korean written without spaces counts as one word per run.
The token figures come from the same estimator used across the site's AI tools: an average of a character-based and a word-based estimate, shown as a range. A model's own tokenizer decides the real figure, so treat the range as a guide rather than a limit to fill.
What stays on your device
The transcript is processed by scripts in the open tab each time the text or an option changes, and no request sends it anywhere. The pasted or opened text, the cleaned copy and the counts exist only in the page's memory: Clear empties them and closing the tab discards them. Copy cleaned text places the result on your system clipboard, where it stays until you copy something else, and a download is saved through a temporary object URL released a few seconds later.
Frequently asked questions
Does it work with captions downloaded from video sites?
Any WebVTT or SRT file is read the same way, wherever it came from. Auto-generated captions are collapsed and merged, but they will still lack punctuation and speaker names if the file has none.
Can I keep the timestamps?
Yes. Untick Remove timestamps and cue numbers and each paragraph, or each line when merging is off, starts with its time in square brackets. Caption times are shortened to hours, minutes and seconds; times in plain-text exports are kept as written.
Why did two of my paragraphs lose the speaker name?
The second paragraph continues the same speaker's turn. Long turns are split at a sentence end after about 120 words, and a blank line in a plain-text transcript also starts a new paragraph, but the name is only written when the speaker changes.
Can it convert the cleaned text back into SRT or VTT?
No. Merging and collapsing discard the timing of individual cues, so the output is for reading, quoting and summarising, not for playing alongside a video.