EditSafely

Add a List Item Suffix

Append a suffix after each list item.

Runs on your device, nothing uploaded

Suffix
So a comma list does not end with a comma.
Try:

0 chars · 0 lines

Output

Append a suffix after each list item.

Type or paste above to see the result here.

Example: Comma after every item but the last

What you paste never leaves this tab

Add a List Item Suffix is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Add a List Item Suffix

  1. 1. Paste your list. Enter your items into the input pane, one per line. Any list where every entry needs the same text appended at the end works here.
  2. 2. Enter a suffix. Type the text to place after every item in Suffix, such as a comma, a file extension, or a closing punctuation mark shared by every entry.
  3. 3. Decide whether to skip empty items. Skip the last item, on by default, leaves the final item bare so a comma list does not end with a comma. Skip empty list items keeps blank lines blank.
  4. 4. Copy the updated list. The output pane shows every item with the suffix added to the end. Copy the updated list into your document, code or spreadsheet.

When to use Add a List Item Suffix

Add a List Item Suffix appends the same text to the end of every item in a list. Reach for Add a List Item Suffix whenever a list needs a consistent trailing marker, extension or punctuation on every line.

  • Adding a file extension to a list of names. A list of bare filenames all need the same extension, such as '.jpg', appended so they become complete filenames ready to reference in code.
  • Turning a list into comma-separated statement fragments. A list of values needs a trailing comma added to every line except potentially the last, so it reads as a comma-separated block when pasted into code.
  • Appending a shared domain to a list of usernames. A list of usernames needs to become full email addresses sharing the same domain, which appending that domain as a suffix produces in one step.
  • Closing off a list of quoted phrases. A list of phrases needs a closing punctuation mark added consistently, such as a period, so every line reads as a complete sentence.

Examples

Comma after every item but the last

Input

one
two

Output

one,
two

About the Add a List Item Suffix tool

Add a List Item Suffix runs as plain JavaScript in your browser tab, with no server behind it. Append a suffix after each list item. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's List Tools section, 114 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 3 settings, including Suffix, Skip empty list items and Skip the last item, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Is Add a List Item Suffix free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All List Tools →