Add Commas
This tiny tool adds commas to every line on your list. It's a bookmarklet, and takes advantage of your browser's permissions to go to work on your clipboard.
I made it in response to a need that turned up in our Crafting Custom Tools tute at Agile Testing Days 2025. Did I write it? No, I asked Claude: Give me a bookmarklet to change the clipboard by adding a comma on the end of every line, and this is part of what it made.
Then I noticed that, for some text, it adds a newline with a comma in between all lines but the last – and that's because it was looking for LF line endings and not coping as well with CRLF endings.
Drag the link below to your bookmark bar. Copy a list, hit the bookmarklet, paste the list.
add commasWrinkles:
- It may ask you for permission the first time you use it with a particular site and browser.
- On Chrome, I've just answered to "BBC News wants see text and images copies to your clipboard" – so take care what sites you give permission to, and revoke that in the site settings.
- On Safari I get a miniature modal with just the word
pastein it, every time.
- It acts invisibly, and I've seen it just not work (amusingly, during a demonstration to a room-full of testers at ATD). So it has an alert that tells you it has done something. Edit the alert out if you want.
- I've no idea what circumstances it needs to work: It works on text and an Excel snippet, via Safari, for me. But for rich text, via Firefox, on your machine? That's for you to find out.
There's perhaps more work to do to make thus a transferrable or robust tool. But this is an ephemeral tool, and I'd maybe just make a few more, or be conscious as I used it, rather than seek to understand its every wrinkle.
The need
One of our participants copied long columns of IDs, and needed them to have commas on the end at the point when they pasted the information into the next thing.
Bookmarklets can futz with your clipboard, so this seemed a simple option.