Add Prefix & Suffix to Lines

Add text before or after every line and number lines automatically.

Runs instantly in your browser — results update as you type.

How do I add text to the beginning of every line?

A prefix and suffix tool adds the same text before and/or after each line of a list, and can number the lines, saving repetitive editing of long lists.

Examples

  • Turn a list into Markdown bullets with the prefix - .
  • Wrap values for SQL: prefix ', suffix ',.
  • Add a domain: prefix https://example.com/ to a list of paths.
  • Number steps: tick "Add line numbers" and choose the separator, e.g. . or ) .

To join the lines into one comma-separated string, use the List to Comma Separated Converter.

Frequently asked questions

Can I start numbering at another number?

Yes, set "Start numbering at".

Are empty lines numbered?

Not when "Skip empty lines" is ticked.

Is my list uploaded?

No, it is processed in your browser.