Skip to main content
FixLines

Add quotes around each line

Wrap every line in quotes, brackets or any text.

Editor

Ln 1, Col 10 lines0 words0 characters

Add quotes around each line: what it does

Surround each line with quotes to build a list of strings, with brackets for an array, or with HTML tags. You choose the text before and after each line, and blank lines can be skipped so the result stays tidy.

Add quotes around each line: how to use it

  1. Paste your lines.
  2. Type the text for before and after each line.
  3. Select Apply and copy the result.

Add quotes around each line: when to use it

  • Build a list of string literals for JavaScript, Python or SQL from a plain column of values.
  • Wrap every line in an HTML tag such as a list item or a paragraph.
  • Put brackets or quotation marks around each entry before pasting it into a configuration file.

Add quotes around each line: examples

Quote each word and add a comma

Input

red
green
blue

Result

"red",
"green",
"blue",
Wrap items in brackets

Input

alpha
beta
gamma

Result

[alpha]
[beta]
[gamma]

Add quotes around each line: questions and answers

Can I use different text before and after?

Yes. For example, use an opening tag before and the closing tag after.

How do I build a list for code?

Wrap each line in quotes with a comma after, then paste the result inside brackets.

Is a trailing comma added after the last line too?

Yes, the same text is added after every line. Delete the last comma by hand if your format does not allow it.

What is the difference from Add text to each line?

None in the result: both add text before and after every line. This page is simply named for the most common use, quoting.

Is my text sent to a server?

No. Everything runs in your browser on your own device, so your text never leaves it.

Tools people often use together with this one.

More in Add & wrapBrowse all text tools