Wrap every line in quotes. Put a hyphen in front of each one. Add a comma to the end of each. These are two-second edits on one line and a dull job on five hundred.
Type what goes before and after, and every line is changed at once. You can then join the lines with commas, which turns a column of values into a list ready for a SQL IN clause or a code array.
How to use the Add Prefix and Suffix to Lines tool
- Paste your lines.
- Type the text to add before and after.
- Copy or download the result.
Popular uses
- Quoting and comma-separating values for SQL or code
- Turning plain lines into a Markdown or HTML list
- Adding a domain to user names or a path to file names
Tips for the best result
- Use \n for a line break and \t for a tab in the prefix or suffix.
- For a SQL list, use a single quote before, a single quote after, and join with a comma.
Quick facts
| Price | Free |
|---|---|
| Works with | Text |
| Where it runs | In your browser, on your device |
| Account | Not needed |