Base64 Encoder / Decoder

Instantly encode or decode Base64 strings — right in your browser. No data is ever sent to a server.

Base64 Tool
Client-Side — 100% Private
100% Private

All encoding and decoding happens locally in your browser. Your data never leaves your device.

Instant Results

Get your encoded or decoded output in milliseconds with no loading or waiting time.

Unicode Support

Correctly handles multibyte UTF-8 characters including emojis, Arabic, Chinese, and more.

Live Statistics

See input/output character counts and the size change ratio after every conversion.

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, +, and /). It is widely used to safely transmit binary data over text-based protocols like HTTP, email (MIME), and JSON.

Common use cases include:

  • Encoding email attachments (MIME)
  • Embedding images as Data URIs in HTML/CSS
  • Storing binary data in JSON payloads
  • Encoding credentials in HTTP Basic Authentication headers
  • Passing binary data through systems that only support text
Note: Base64 is an encoding scheme, not encryption. Encoded data can be trivially decoded by anyone — do not use it to secure sensitive information.
Frequently Asked Questions

Base64 works in groups of 3 bytes. If the input length is not divisible by 3, padding characters (=) are added to make the output length a multiple of 4.

No. Base64 is simply an encoding format — it is fully reversible without any key or password. It is not a secure way to hide data.

Base64 encoding always expands the data by approximately 33% because it represents every 3 bytes of binary data as 4 printable characters.