ADD PREFIX TO LINES
Add a prefix, suffix, or line numbers to every line of text. Nothing leaves your browser.
In short
Add a prefix, suffix, or running line number to every line of text — great for bullets, quotes, code comments, and list formatting. Runs entirely in your browser.
How to add a prefix to every line
- 1
Paste your text into the input box, one item per line.
- 2
Type the prefix (and optionally a suffix) to add to every line.
- 3
Optionally turn on line numbering and use {n} in the prefix, e.g. "{n}. ".
- 4
Copy the result.
Questions
- Can I add text to the end of each line too?
- Yes. Fill in the Suffix field and it is appended to every line, so you can wrap lines in quotes or add trailing commas.
- How do I number lines?
- Check "Number lines" and put {n} in the prefix or suffix, for example "{n}. ". Numbering starts at 1 unless you set a different start value.
- What happens to blank lines?
- With "Skip empty lines" on (the default), blank lines are left untouched so your spacing is preserved. Turn it off to prefix them too.
- Is my text sent anywhere?
- No. Everything is processed client-side in your browser; nothing is uploaded or stored.
Related tools
- Sort Text LinesSort lines alphabetically, numerically, or by length, with dedup and trim options.
- Remove Duplicate LinesStrip repeated lines from text, keeping the first or last occurrence.
- Remove Extra SpacesCollapse repeated spaces and tabs into one, with options to trim lines and drop empty ones.
- Remove Line BreaksJoin multi-line text into one block, replacing line breaks with a space or nothing.
- Text CleanerTrim lines, collapse spaces, strip HTML tags, punctuation, or numbers in one pass.
- Text Diff CheckerCompare two blocks of text line by line and see what was added, removed, or unchanged.
- Email ExtractorPull every email address out of pasted text, deduplicated and one per line.
- URL ExtractorPull every URL out of pasted text, deduplicated and one per line.
Updated