Convert new lines to commas
Paste a list with one item per line and press Join with commas. CHF, HTN, and CAD on three lines become one line: CHF, HTN, CAD. Bullets, list numbers, and blank lines are taken out for you.
Your text stays in this browser tab. WriteKeys never uploads or saves it. How it works
How to turn a list into one line
- Paste the list into the box above, one item per line. It can come from a PDF, an email, the problem list in your EHR, or a column of cells copied from Excel or Google Sheets.
- Press Join with commas. To change only some of the lines, select them first.
- Press Copy all and paste the line into your note.
CHF HTN CAD
CHF, HTN, CAD
What gets cleaned up along the way
Lists copied out of documents rarely arrive clean. Join with commas deals with the usual clutter, so you don't have to strip it first.
| In the pasted list | What happens |
|---|---|
| Bullets such as • ◦ ▪ ■ * > ✓ | Removed |
| Dashes used as bullets: - CHF | Removed |
| List numbers and letters: 1. 2) (3) a) | Removed |
| Word's hollow sub-bullet, which pastes as the letter o | Removed |
| Bullets from PDF symbol fonts, which paste as a box or a blank | Removed |
| Blank lines between items | Skipped |
| Spaces before or after an item | Trimmed |
| A comma or semicolon already at the end of a line | Removed, so you don't get two in a row |
1. CHF, 2. HTN; 3. CAD
CHF, HTN, CAD
Numbers inside an item are left alone. “Metformin 500 mg twice daily” stays exactly as written.
A comma list or a sentence?
Use Join with commas for problem lists, medication lists, and anywhere a plain list reads fine. Use Join with “and” when the list goes inside a sentence, such as “Client has a history of CHF, HTN, and CAD.” It adds “and” before the last item with a comma in front of it (the serial, or Oxford, comma), which stops the last two items reading as a pair. Two items become “CHF and HTN” with no comma.
CHF HTN CAD
CHF, HTN, and CAD
Going the other way
One item per line splits a comma-separated list back onto separate lines. It also splits at semicolons, drops the “and” before the last item, and leaves numbers like 1,000 in one piece.
CHF, HTN, and CAD
CHF HTN CAD
When it is not the right button
If your items have commas of their own, like “Lisinopril 10 mg, once daily,” a comma-joined line is hard to read because nobody can tell where one item ends. Keep those on separate lines, or edit them by hand.
If the lines are one paragraph that a PDF broke apart, you want Remove line breaks instead. It joins lines with spaces, not commas.
Questions
Can I join only some of the lines?
Yes. Select those lines, then press Join with commas. The rest of your text stays as it is.
Is there a space after each comma?
Yes. Items are joined with a comma and one space, the way they would be written in a sentence. There is no comma after the last item.
How do I paste a column from Excel?
Select the cells in the column and copy them. Each cell pastes onto its own line, so Join with commas turns the whole column into one line.
Can I use semicolons or another separator?
Not at the moment. WriteKeys joins with commas, or with commas and “and”. If you need a different separator often, email hello@writekeys.net and tell us what you use it for.