Developer Tools

Base64 Encoder / Decoder

Encode text to Base64 or decode it back — privately and instantly in your browser.

About the Base64 Encoder / Decoder

Base64 encoding represents binary or text data using a safe set of ASCII characters, commonly used in data URLs, email and APIs. This encoder/decoder converts text to and from Base64 in a click.

It correctly handles Unicode characters and, like all our developer tools, processes everything locally so your data never leaves your device.

How to use the Base64 Encoder / Decoder

  1. Choose Encode or Decode.
  2. Enter your text or Base64 string.
  3. Click the button and copy the result.

How the calculation works

Encode: btoa(UTF-8 bytes) · Decode: UTF-8 from atob(string)

Example

Hello CalculatorWorld! encodes to SGVsbG8gQ2FsY3VsYXRvcldvcmxkIQ==.

Frequently asked questions

It safely represents data as text for use in URLs, JSON, email attachments and inline images.
Yes, the tool encodes and decodes UTF-8 correctly, including accented and non-Latin characters.
No. Base64 is encoding, not encryption — it is easily reversible and offers no security.
No, encoding and decoding happen entirely in your browser for full privacy.

Related calculators