Skip to content
Free text tool

Add prefix and suffix to lines

This tool adds the same text to the start and end of every line, and can number the lines too. People use it to make bullet lists, wrap values in quotes, build simple code lines or number steps.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result
Private: runs on this device

Input

24 characters

Blank lines stay blank and are not numbered

Result

- apples
- bananas

- cherries

Example

Input
apples
bananas

cherries
Result
- apples
- bananas

- cherries

How to use the add prefix and suffix to lines

  1. Paste your lines into the One item per line box.
  2. Type a Prefix and a Suffix, or leave either blank.
  3. Choose a Numbering style, a Start number and whether to skip blank lines.
  4. Press Run, then Copy result.

How it works

Each line becomes number, then prefix, then the line, then suffix. The prefix and suffix are used exactly as typed, including spaces.

Numbering can look like 1., 1), [1] or a plain 1, and can start at any whole number, including 0 or a negative number.

With Skip blank lines on, blank lines stay blank and do not use up a number.

You need a prefix, a suffix or a numbering style. Prefix and suffix are limited to 1,000 characters each.

Everything runs in your browser. Your input is not uploaded or stored.

Questions and answers

How do I add quotes around every line?

Type a quote mark in both Prefix and Suffix. Add a comma after the closing quote in Suffix if you need a list for code.

Can I number lines starting from a number other than 1?

Yes. Pick a Numbering style and enter any whole number in Start number.

How do I make a bullet list from lines?

Put a dash and a space, or another bullet character, in Prefix and press Run.

All 220 SnowRock tools