Base64 Encode & Decode

Convert text to Base64 and decode Base64 back to text, entirely in your browser.

Understanding the base64 encode & decode calculation

Base64 encodes text (and binary) into a safe set of characters for transport in URLs, emails and data files. Paste text to encode it, or paste Base64 to decode it back.

Everything runs locally β€” nothing is sent anywhere.

Worked example

As an example, with a text of Hello world, the calculator returns a base64 of SGVsbG8gd29ybGQ=. Change any field and every figure updates as you type.

Using the calculator

  1. Choose encode or decode.
  2. Paste your text or Base64.
  3. Copy the result.

The calculation

encoding groups bytes into 6-bit chunks mapped to 64 characters

Common questions

What is Base64?
A way to represent data using 64 safe characters, so it survives systems that only handle text.
Is Base64 encryption?
No β€” it’s encoding, not encryption. Anyone can decode it, so never use it to hide secrets.
Does my text leave my device?
No β€” encoding and decoding happen entirely in your browser.