Base64 Encoder / Decoder
Encode text to Base64 or decode a Base64 string back to text directly in your browser.
How to use
- 1Enter text or a Base64 string into the left input
- 2Choose mode: Encode or Decode
- 3Click "Process" to get the result
- 4Copy the result for use
Frequently Asked Questions — Base64 Encoder / Decoder
What is Base64 encoding?+
Base64 encoding converts binary data into a text format using 64 ASCII characters, making it safe to transmit over systems that handle text (e.g., email, JSON, HTML attributes).
Is Base64 a form of encryption?+
No. Base64 is an encoding scheme, not encryption. Anyone who sees a Base64 string can decode it. Use proper encryption (AES, RSA) for sensitive data.
Why does Base64 output end with "=="?+
Base64 encodes in 3-byte blocks. If the input is not divisible by 3, padding characters (=) are added to complete the last block (1 or 2 equals signs).
Is my data sent to a server?+
No. All encoding and decoding happens entirely in your browser. Your data never leaves your device.
What is Base64 URL-safe encoding?+
Standard Base64 uses + and / which are special URL characters. URL-safe Base64 replaces them with - and _, making it safe for query strings and JWTs.
Can I Base64 encode images?+
Yes. Base64-encoded images can be embedded directly in HTML or CSS as data URIs (e.g., data:image/png;base64,...) to avoid additional HTTP requests.
Why is Base64 ~33% larger than the original?+
Every 3 bytes of binary data become 4 characters in Base64, which increases the data size by approximately 33%.