← Back to Tools

Base64 Encoder / Decoder

Encode and decode Base64 text and data-URIs instantly, with full Unicode support.

Loading tool…

About this tool

Encode text to Base64 or decode Base64 back to readable text — with correct UTF-8 handling for emoji and non-Latin scripts that break naive converters. Also builds data: URIs for inlining small assets in CSS or HTML, a handy micro-optimization for critical rendering paths.

How to use the Base64 Encoder / Decoder

  1. Paste text or Base64 into the box.
  2. Click Encode or Decode.
  3. Copy the result (or the ready-made data URI).

Frequently asked questions

Why does my Base64 fail to decode?

Usually whitespace/line breaks inside the string or a truncated paste — this tool strips whitespace automatically before decoding.

When should I inline assets as data URIs?

Only for tiny files (under ~2 KB, e.g. icons) on the critical path; larger inlined assets bloat HTML and defeat caching.