Launch ToolkitCalculatorsConvertersDeveloperTextAll toolsLaunches
Launch your project Sign in
Theme
Home/Developer/Base64 Encode / Decode

Base64 Encoder & Decoder

Encode turns the text into UTF-8 bytes, then Base64. Decode reverses that. The id of this tool is base64.

Runs in your browser. Nothing you enter is uploaded.

Worked examples

hello

EncodeaGVsbG8=
Decode of aGVsbG8=hello

café

EncodeY2Fmw6k=
Decode of Y2Fmw6k=café

é is the UTF-8 bytes C3 A9, so the Base64 is Y2Fmw6k=.

What the buttons call

ButtonFunction
Encodebtoa of the UTF-8 bytes (encodeURIComponent, then the legacy unescape step, then btoa)
Decodeatob, then the matching UTF-8 decode. Whitespace at the ends of the input is trimmed.
Not valid Base64Status "Not valid Base64". The output box is not replaced.

Encode any text to Base64 or decode a Base64 string back to plain text in one click. Base64 is a way of representing binary or text data using only 64 safe ASCII characters, which is why it shows up everywhere: data URIs, JWTs, email attachments, API tokens and config files. This tool is UTF-8 safe, so emoji and non-Latin characters round-trip correctly instead of turning into garbage. Paste your input, choose encode or decode, and copy the result. Everything is processed locally in your browser, so your tokens and payloads are never sent to a server.

How to use Base64 Encode / Decode

  1. Paste your text into the input box to encode it.
  2. Read the Base64 result in the output box.
  3. To go the other way, paste Base64 and switch to decode mode.
  4. Click copy to grab the result.

Frequently asked questions

What is the Base64 for hello?

aGVsbG8=

Does it keep emoji and accents?

Yes. Text is encoded as UTF-8 first. café encodes to Y2Fmw6k= and decodes back to café.

Is this encryption?

No. Base64 is an encoding. Anyone can decode it.

Is the text uploaded?

No. Encode and decode run in the browser.

Is Base64 Encode / Decode any good?

Give your verdict. Sign-in needed to vote and comment.

Badge

Link this tool from a README, doc or site. The badge links back to this page.

Listed on yourhack.ai

[![Listed on yourhack.ai](https://yourhack.ai/badge/base64.svg)](https://yourhack.ai/base64)