Put quotes around every line, with an optional trailing comma.
Runs entirely in your browser.
Wrap Lines in Quotes
- Input
- Output
- Quote with: Trailing comma Comma on the last line too Escape quotes inside
About Add Quotes to Text
Turns a plain list into an array literal you can paste into code. With double quotes and trailing commas, the result drops straight into JavaScript, Python or JSON - the last line keeps its comma off by default, since JSON will not accept one.
Quotes already inside a line are escaped with a backslash so the result stays valid. Untick that if you are quoting for something that does not use backslash escapes.
Other Text and List Tools
Text
- Censor Words
- Extract Email Addresses
- Extract a Substring
- Find Hidden Characters
- Repeat Text
- Truncate Text
- Reverse Text
- Rotate Text
- Randomize Case
- Text to Unicode
- Palindrome Checker
- Create a Palindrome
Lines and lists
- Join Lines
- Split Text
- Wrap Each Line
- Unwrap Lines
- Group Lines
- Find Most Common Lines
- Rotate Lines
- Truncate a List
- Sort Lines
- Remove Duplicate Lines