Add Prefix and Suffix to Each Line
Add text to the start and end of every line at once — bullets, quotes, HTML tags, commas or anything else — with an option to leave blank lines untouched. A free, instant line prefix and suffix tool.
This tool adds a prefix, a suffix, or both to every line of your text in one go. Type what should go at the start and what should go at the end, and each line is wrapped accordingly as you watch. It is the fast way to turn a plain list into quoted strings, HTML list items, Markdown bullets, or a set of lines ending in commas. By default it skips blank lines so you do not end up with stray prefixes on empty rows, and you can turn that off if you want every line treated the same.
- No sign-up, ever
- 100% free
- Nothing uploaded
- Works offline after first load
- No limits, no email wall
How to use it
- 1
Paste your lines
Add a list or block of text, one item per line.
- 2
Set prefix and suffix
Type the text to add at the start and the end of each line; leave either blank to skip it.
- 3
Copy the result
Every line, wrapped with your text, appears on the right. Copy it out.
When it comes in handy
Building code or markup
Wrap each line in quotes, tags or brackets to turn a list into an array or HTML.
Formatting lists
Add a bullet or dash to the start of every line for Markdown or plain notes.
Preparing data
Append a comma or a delimiter to each line before joining or importing it.
Instant & 100% private — nothing is uploaded
Every keystroke is handled right here in your browser. Your text is never sent to a server, so there is no sign-up, no email wall, and no length cap from us. Load the page once and it keeps working even if you go offline.
Frequently asked questions
- Can I add only a prefix, or only a suffix?
- Yes. Fill in just the prefix field to add text only at the start of each line, or just the suffix to add it only at the end. Leaving a field empty means nothing is added there, so you can use the tool for either job on its own or both at once.
- Why are blank lines skipped by default?
- Blank lines usually separate sections rather than hold content, so adding a prefix or suffix to them tends to create clutter like a lone bullet on an empty row. Skipping them keeps the output clean. Turn the option off when you genuinely want the prefix and suffix on every line, blank ones included.
- Does it change the words on each line?
- No. It only adds your text to the two ends of each line; the line content in between is left exactly as it is. Nothing is trimmed, reordered or altered, so what you paste comes back unchanged apart from the wrapping you asked for.
More tools
More from the Hivly network
Free sister tools on our other sites.