Add Quotes
Automatically wrap each line in double or single quotes when preparing text for code, SQL, or data formats.
Wrap each line in quotes for lists and data exports.
Input
Paste one item per line before wrapping each line in quotes.
Output
Each non-empty line will be returned as a quoted string.
FAQ
Common questions about this tool.
Can I choose single or double quotes?
Yes. You can select either double quotes or single quotes for each line.
When is this useful?
It is useful when preparing lists for SQL, arrays in code, or data that needs string literals.
How to use
Paste the list, choose your quote type, then copy the quoted result.
- Paste the text with one item per line.
- Choose double or single quotes based on your format needs.
- Click Add Quotes to wrap each line.
- Copy the quoted output into your code or data file.
Use cases
Use it when converting simple lists into quoted format for SQL or code.
- Prepare lists for SQL IN clauses or WHERE conditions.
- Format items as string literals for JavaScript, Python, or other code.
- Create quoted CSV data or other quoted text formats.
When this tool is useful
Automatically wrap each line in double or single quotes when preparing text for code, SQL, or data formats. Add Quotes sits in the text conversion part of the site, which focuses on change text structure, case, line format, or list layout.
Use it when the content itself is already correct, but the format, order, or line structure still needs to change before reuse. Within that group, it leans toward text formatting tasks, so the page is tuned for quick single-purpose use rather than a long multi-step workflow. If this step is only part of the job, the most relevant follow-up tools are Number Lines and Comma to Newline.
Before you copy the result
- Review a few lines of output to confirm the conversion keeps the separators, order, or casing you expect.
- Use the example block as a quick sanity check before you process a larger list or draft.
- If you still need cleanup after conversion, run the result through a whitespace or list tool instead of editing manually.
Example
A quick example of how this tool works.
Input
apple\nbanana\ncarrot
Output
"apple"\n"banana"\n"carrot"