Wrap values in quotes for code
Paste apple, banana and cherry on separate lines with Prefix set to " and Suffix set to ", to get "apple", then "banana", then "cherry", each wrapped and comma-terminated.
Add a prefix, suffix or line numbers to every line of text at once — free online tool.
About
Adds a prefix and/or suffix to every line of a list, with optional numbering, zero-padding and a custom separator.
Developers use it to wrap a list of values in quotes or brackets for code, while writers number a list of steps or references. It's one of many free text tools on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.
Examples
3 worked examples
Paste apple, banana and cherry on separate lines with Prefix set to " and Suffix set to ", to get "apple", then "banana", then "cherry", each wrapped and comma-terminated.
With 3 items, numbering turned on starting at 1, and zero-padding enabled, the output reads 01. apple, 02. banana, 03. cherry — padding is based on the total line count.
Paste apple, a blank line, then banana with numbering from 1 and Skip blank lines on, to get 1. apple, an untouched blank line, then 2. banana.
FAQ
Quick answers to common questions about the Line Prefix, Suffix and Numbering.
It adds text to the start and/or end of every line in a list, and can number the lines with a custom starting number and separator.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. Your list is processed entirely on your own device — nothing is sent to a server.
Yes. Fill in both the Prefix and Suffix fields and both will be applied to every line in the same pass.
It pads line numbers with leading zeros (01, 02, 03 ...) so they line up evenly, based on the total number of lines.
Yes. Set "Numbering start" to whatever number you want the first line to begin at.
It leaves empty lines untouched, so they aren't given a prefix, suffix or number.
It's built for everyday lists; extremely large lists are still handled but may take a moment longer to process.
Did Line Prefix, Suffix and Numbering work for you?