Base64-encode a List
Convert list to base64. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Base64-encode a List
- 1. Paste your list. Put one item per line into the input pane, such as a small set of values you need to embed somewhere that only accepts encoded text.
- 2. Choose the alphabet. Turn on URL-safe alphabet (no padding) if the encoded result needs to sit inside a URL or query string. Leave it off for standard base64 with normal padding.
- 3. Copy the encoded string. Copy the base64 output, which encodes the whole list including line breaks, into a URL parameter, config value, or API payload that expects base64 text.
When to use Base64-encode a List
Base64-encode a List converts an entire list, including its line breaks, into a single base64 string, the same encoding you would get from a browser's btoa function. Use Base64-encode a List whenever a list of values needs to travel through a channel that only handles plain ASCII.
- Embedding a small list in a URL parameter. You need to pass a short list of values through a query string without special characters causing problems. Encode the list as URL-safe base64 and append it to the URL.
- Storing a list value in an environment variable. A CI pipeline needs a multi-line list stored as a single environment variable, since env vars do not always handle newlines cleanly. Base64-encode the list before storing it.
- Passing a list through an API that expects a string field. An API accepts a single string field but you need to send a whole list of items in one request. Encode the list as base64 and decode it on the receiving end.
- Obscuring a list in a shared config file. A config file shared casually should not show a sensitive list in plain sight at a glance. Base64-encode it so the raw values are not immediately visible.
Examples
Encode a shopping list
Input
apple banana
Output
YXBwbGUKYmFuYW5h
About the Base64-encode a List tool
Base64-encode a List does its work locally, right in the browser. Convert list to base64. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the List Tools collection on EditSafely, a set of 114 small, focused List utilities that share the same instant, private workspace.
You can shape the output with the URL-safe alphabet (no padding) setting, and the result refreshes the moment you change it. A worked example further down the page shows exactly what the tool produces for a real input.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Does Base64-encode a List cost anything?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
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.