Remove Line Numbers and Prefixes from Text
Remove line numbers and other prefixes from any text you paste, turning a numbered or bulleted block back into clean, plain lines. Pick a one-click preset or write your own pattern, and the cleaned text appears in the Output panel instantly.
It handles far more than just numbers: strip bullets, quote markers (>), indentation, or a custom prefix or suffix you define yourself. It is built for developers cleaning up copied code, writers tidying text pasted from PDFs, and anyone who needs to drop the numbering from a list before reusing it.
How to Remove Line Numbers
Paste your text
Type or paste your text into the Input panel on the left, or hit the Paste button to pull it straight from your clipboard. Each line is treated on its own.
Choose a removal method
In Preset mode, click a button to remove numbers (123), bullets (•), quotes (>), or indentation (⇥) — or pick All to clear every common prefix at once. Switch to Custom mode to enter your own characters or a regular expression.
Fine-tune the result
Set Position to Prefix or Suffix depending on where the marker sits, and tick Trim to also strip leftover whitespace from the start and end of each line. The Output and the Lines / Cleaned / Unchanged counts update as you go.
Copy, download, or swap
Use Copy to send the cleaned text to your clipboard or Download to save it as a .txt file. Hit Swap to move the output back into the input and run another cleanup pass.
Features
One-Click Presets
Remove numbered prefixes such as 1., 2), [3], #4 and (5), plus bullets, quote markers, and indentation, with a single button.
All-in-One Cleanup
The All preset clears numbers, bullets, and quotes together, so mixed-up pasted text is cleaned in a single pass.
Custom Pattern & Regex
Switch to Custom mode to remove exact characters, or tick Use Regex for full regular-expression matching like ^Step \d+:.
Prefix or Suffix Position
Choose whether to strip the marker from the start (Prefix) or the end (Suffix) of each line.
Saved Custom Presets
Save a pattern you use often as a named preset and reuse it with one click; it stays on your device until you delete it.
Trim Whitespace
Optionally remove leading and trailing whitespace from each line after the prefix is gone, for a perfectly tidy result.
Live Stats
The Output refreshes as you type or change settings, with a running count of total Lines, Cleaned lines, and Unchanged lines.
Built-In Regex Guide
A guide shows common patterns and a syntax reference; click any example to drop it into the pattern field.
Swap & Re-clean
Move the output back to the input to chain multiple cleanup passes — for example remove numbers first, then quotes.
Copy & Download
Copy the cleaned text to your clipboard or download it as a plain .txt file when you are done.
Frequently Asked Questions
How do I remove line numbers from pasted text?
Paste your text into the Input panel and click the 123 preset. The numbered prefix is stripped from every line, and the clean version appears in the Output panel ready to copy or download.
Which line-number formats does it handle?
The Numbers preset recognizes the most common styles, including 1., 2), [3], #4 and (5). For any other format, switch to Custom mode and enter your own characters or a regular expression.
Can I paste code copied with line numbers from an editor?
Yes. Paste the code into the Input panel and use the 123 preset (or Indent if your editor also adds leading spaces). This is a quick way to clean up snippets copied from a code viewer before pasting them into your own editor.
Is the original text changed, or only the numbers removed?
Only the matching prefix or suffix is removed; the rest of each line is left exactly as it was. Your input stays in the Input panel, and the cleaned result is written separately to the Output panel.
Can I remove bullets or quote markers instead of numbers?
Yes. Use the • preset to strip bullet markers such as *, -, and Unicode bullets, or the > preset to remove quote markers used in emails and Markdown. The All preset removes numbers, bullets, and quotes in one go.
What is Custom mode and the Use Regex option?
Custom mode lets you type the exact characters to remove. Tick Use Regex to treat that input as a regular expression instead — for example ^Step \d+:\s* removes prefixes like "Step 1: " and "Step 2: ". The built-in regex guide lists ready-made patterns you can click to use.
What does the Position setting do?
Position decides where the marker is removed. Prefix strips it from the start of each line (the usual case for line numbers), while Suffix removes a matching marker from the end of the line.
What does the Trim option do?
When Trim is on, any leading or trailing whitespace left on a line after the prefix is removed is also cleared. It is handy when the remaining text has stray spaces at the start or end.
Can I save a pattern I use often?
Yes. In Custom mode, enter your pattern and use Save as Preset to give it a name. It then appears as a one-click button alongside the built-in presets and is stored in your browser until you delete it.
Can I edit the cleaned output directly?
Yes. The Output is an editable text box, so you can make manual tweaks before copying or downloading it.
Is my text private?
Completely. All processing runs locally in your browser with JavaScript, and nothing you paste is ever uploaded to a server. Once the page has loaded, the tool even works offline.
No comments yet. Be the first to comment!