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.
Quoted
0
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.
Example
A quick example of how this tool works.
Input
apple\nbanana\ncarrot
Output
"apple"\n"banana"\n"carrot"