⌨️ Developer ToolsFreeNo sign-upWorks offline once loaded
Base64 Encoder / Decoder
Encode text or files to Base64 and decode back, with URL-safe variants.
Runs entirely in your browser. Nothing is uploaded, stored or sent anywhere.
The formula behind it
Base64 maps every 3 bytes to 4 characters from a 64-character alphabet, padding the end with = signs.
The working is shown so you can check it. If a result looks wrong, this is the first place to look.
How to use it
Open the Base64 Encoder / Decoder above. It is ready to use — nothing to install.
Enter input, direction, url-safe alphabet.
Press Calculate.
Copy the result with one click, or download it where the tool produces a file.
Change any value and the result updates immediately — there is no limit on how many times you run it.
About the Base64 Encoder / Decoder
Encode text or files to Base64 and decode back, with URL-safe variants.
This is one of 107 free tools on RandomGen Tools. It sits in the developer tools section, alongside json formatter. Everything runs in your browser, so there is nothing to install and no limit on how often you use it.
Questions people ask
No. It makes it about 33% larger. It exists to carry binary data through text-only channels.
No. Anyone can decode it instantly. Never use it to protect passwords or secrets.
A variant that replaces + and / with - and _ so the string can go in a URL or filename without escaping.