Base64 Encoder / Decoder

Encode & decode Base64

What Is This Tool?

This tool converts text to Base64 and back again, entirely in your browser. Base64 encoding turns arbitrary text (including Unicode characters like emoji or accented letters) into a string of printable ASCII characters, which is useful anywhere binary-unsafe channels are involved, such as embedding data in JSON, XML, or a URL.

How to Use

1

Type or paste text into the Text field, then click Encode.

2

Or paste a Base64 string into the Base64 field and click Decode.

3

Use Swap to flip the two fields' contents.

4

Copy either field's contents with its own Copy button.

Features

  • Correct handling of Unicode text (emoji, accents, non-Latin scripts)
  • Instant encode and decode
  • Swap the two fields with one click
  • Friendly error message on invalid Base64 input
  • 100% client-side — nothing leaves your browser

Examples

Text: Hello, world! 🍒

Base64: SGVsbG8sIHdvcmxkISDwn42S

Common Use Cases

  • Embedding small binary-safe strings inside JSON or XML
  • Decoding a Base64-encoded JWT segment or API token for inspection
  • Encoding credentials for a Basic Authorization header
  • Sanity-checking Base64 data pasted from another system

Frequently Asked Questions

Is Base64 encryption?

No. Base64 is just a reversible encoding, not encryption. Anyone can decode it back to the original text; it provides no security or confidentiality.

Does this handle emoji and non-English text?

Yes. Text is UTF-8 encoded before Base64 conversion, so emoji, accented characters, and non-Latin scripts round-trip correctly.

Why does Decode fail on my input?

The Base64 field must contain valid Base64 characters (A-Z, a-z, 0-9, +, /, and = padding). Extra whitespace, line breaks copied from some sources, or truncated text will cause a decode error.

What does Swap do?

It swaps the current contents of the Text and Base64 fields, which is handy for quickly reversing a previous encode or decode.

Is my text uploaded anywhere?

No, everything happens locally using your browser's built-in btoa/atob and TextEncoder/TextDecoder APIs.