Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 to text. UTF-8 supported.
About Base64 Encoding
Base64 encoding converts text or binary data into a safe ASCII string. It is commonly used in data URLs, API tokens, and when embedding binary data in JSON or XML. This tool encodes and decodes in your browser with full UTF-8 support.
Frequently Asked Questions
What is Base64?
Base64 is an encoding scheme that converts binary data or text into a string of 64 ASCII characters (A–Z, a–z, 0–9, +, /). It is often used to embed data in URLs, JSON, or XML.
Is my data sent to a server?
No. Encoding and decoding happen entirely in your browser. Your text never leaves your device.
Why does decoding sometimes fail?
Decoding fails if the input is not valid Base64. Base64 only uses A–Z, a–z, 0–9, +, / and the padding character =. Remove any spaces or line breaks before decoding.