Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to UTF-8 text.

How it works

Text is encoded as UTF-8 before Base64 conversion. Base64 is an encoding, not encryption.

UTF-8 text ↔ binary bytes ↔ Base64.

Debugging scenario

Encode a short UTF-8 fixture containing ASCII, Chinese text and an emoji, then decode it and compare Unicode code points. When debugging an API, first determine whether it expects standard Base64 or Base64url and whether padding is required.

How to interpret the result

A successful round trip confirms this browser converted the selected text representation consistently. Base64 changes representation, not confidentiality or integrity. Binary files decoded as UTF-8 can become corrupted, and the URL-safe alphabet differs in the characters used for indices 62 and 63.

Input reference

Mode
Example default: Encode
Input
Example default: Sample input included

Common mistakes

  • Pasting secrets, credentials, customer records or other production data into a browser tool or shareable URL.
  • Using Base64 as encryption or confusing standard Base64 with unpadded Base64url.
  • Treating a convenient preview as validation by the target runtime, parser, database or security control.

Before using the result

  1. Reduce the input to a synthetic example that still reproduces the behavior.
  2. Compare bytes, alphabet and padding requirements with the receiving protocol implementation.
  3. Add the accepted input and expected output to the project regression tests before release.

Questions to check before production use

Is Base64 secure?

No. Anyone can decode it. Do not use it to protect secrets.

Are Unicode characters supported?

Yes, the tool converts UTF-8 text before encoding.

Independent developer utility. Review output before using it in production.

Detailed developer guide

Encoding, tokens and identifiers: where representation stops and trust begins

Developer incidents often come from assigning security meaning to a representation. This guide separates reversible encoding, random identifiers, cryptographic verification and credential handling.

Read the guide