Base64 Encoder and Decoder
Encode text to Base64 or decode Base64 strings back to readable text. Supports standard and URL-safe Base64.
How to use the Base64 Encoder/Decoder
What is Base64?
Base64 is an encoding that converts any data into a string of 64 safe ASCII characters. It is used to embed binary data (like images) in text formats, to pass data safely in URLs and headers, and to store binary content in JSON or XML. It is not encryption — it is encoding, and is easily reversible.
Encode text to Base64
Paste any text into the Encode tab and get the Base64 equivalent immediately. Enable URL-safe mode to replace + with - and / with _ — required when using Base64 in URLs or filenames. Enable line breaks for email-compatible MIME Base64 that wraps at 76 characters per line.
Decode Base64 back to text
Switch to the Decode tab and paste any Base64 string to get the original text. Both standard and URL-safe Base64 are detected and handled automatically. If the Base64 is invalid or incomplete, an error message will tell you what went wrong.