MathExact Logo

Base64 Encoder / Decoder

Encode text or files to Base64, decode Base64 back to text. URL-safe mode, MIME line-wrapping, and image preview included.

Base64 Character Sets

Standard Base64 (RFC 4648 §4)

A–Z · a–z · 0–9 · + · /
Padding: =

Default. + and / may require encoding in URLs.

URL-safe Base64 (RFC 4648 §5)

A–Z · a–z · 0–9 · - · _
Padding: =

Safe for URLs, filenames, and query strings without percent-encoding.

Size overhead

3 bytes4 chars
100 bytes136 chars (+36%)
1 KB~1.37 KB
1 MB~1.37 MB
FAQ

Frequently Asked Questions

Everything you need to know about this tool

Base64 is a binary-to-text encoding scheme that converts binary data (bytes) into a set of 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). It is commonly used to embed binary data - like images, files, or cryptographic keys - inside text-based formats such as JSON, XML, HTML, or email (MIME).
Missing Something?

Want a missing feature? Or want a new tool?

We will implement it for you - 100% free of cost. Reach out to our team with your specifications and we will build it.