Add quotes around each line
Wrap every line in quotes, brackets or any text.
Editor
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
- Paste your lines.
- Type the text for before and after each line.
- 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
Input
red green blue
Result
"red", "green", "blue",
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.
Related tools
Tools people often use together with this one.
- Add text to each line
Add a prefix, a suffix or both to every line.
- Bullet list maker
Turn lines into a bullet list, or remove the bullets.
- Find and replace text
Replace words in your text, with optional regular expressions.
- Add line numbers
Number every line of your text, or remove the numbers.