Base64
Encode and decode Base64 and Base64URL, with or without padding. Both directions update as you type.
About this tool
Base64 writes binary data using 64 printable characters, so it can travel through text-only channels such as JSON, email and data URLs. Every 3 bytes become 4 characters, so the output is about a third larger than the input.
Base64URL replaces + and / with - and _ so the result is safe in URLs and file names, and is often used without the = padding, as in JSON Web Tokens. This page converts both ways as you type, between text or hex and every Base64 variant.
Questions
- Is Base64 encryption?
- No. Base64 is an encoding that anyone can reverse. It hides nothing.
- Why does my Base64 end with = or ==?
- The = signs are padding that bring the length up to a multiple of 4 when the input length is not a multiple of 3 bytes. Many formats, including Base64URL in JWTs, leave the padding out.
- Is my input sent to a server?
- No. The page loads a compiled Dart engine into a Web Worker and does all the work in your browser tab. Nothing you type or drop in is uploaded, and the tools keep working offline once the page has loaded.