Knowledge Mark G
Hire Me

100% free developer tool

Base64 Encode / Decode

Encode text to Base64 or decode it back, with full Unicode support.

  • No sign-up required
  • Instant results
  • Nothing is uploaded
  • Works on any device

Private by design. Everything happens in your browser. Your files never leave your device.

  • 100% freeNo hidden charges, no watermark
  • Instant resultsDone in seconds, no queue
  • Secure & privateNothing is uploaded
  • Works on all devicesDesktop, tablet and mobile

How to use the Base64 Encode / Decode

  1. 1Paste your input or set the options.
  2. 2Check the output as it updates.
  3. 3Copy it into your project.

About the Base64 Encode / Decode

Encodes text to Base64 and back. Unlike the browser's built-in btoa, this handles the full Unicode range, so Hindi, emoji and accented characters survive the round trip intact.

What Base64 is for

Base64 turns any data into plain letters, digits, + and /, so it can travel through systems that only accept text: email attachments, data URLs in HTML and CSS, JSON payloads, HTTP Basic authentication headers and the middle part of a JWT. The encoded text is about a third larger than the original.

Base64 is not encryption

Anyone can decode Base64 - there is no key. Never use it to hide passwords or secrets. To check a file has not changed, use a hash instead; to create a secret, use the password generator.

Unicode and URL-safe Base64

Text is encoded as UTF-8 first, so accented letters, other scripts and emoji survive a round trip. Some systems use the URL-safe variant, which writes - and _ instead of + and /, and often drops the trailing = padding; swap those characters back before decoding if a value refuses to decode.

Frequently asked questions

Does it handle Hindi, emoji and accented characters?+

Yes. The browser's built-in btoa throws on anything outside Latin-1; this encodes through UTF-8 first, so the full Unicode range survives the round trip.

Is Base64 encryption?+

No, and this matters. Base64 is an encoding, not a cipher - anyone can decode it in one step. Never use it to hide a password or a token.

Why does the output end in = signs?+

Base64 works in groups of three bytes. When the input does not divide evenly, one or two = characters pad the last group. They are part of the format, not an error.

Worth reading

All articles →
View all →