esc
Calculators

Base64 encode and decode:
UTF-8 safe, URL-safe option

Paste text to turn it into Base64, or paste Base64 to read what it says. Accented letters, Arabic, Chinese and emoji come back exactly as typed.

Base64SGVsbG8sIHdvcmxkISBHcsO8w59lIPCfkYs=
Text characters
21
UTF-8 bytes
26
Base64 length
36
  • Text is turned into UTF-8 bytes first, so accents, Arabic, Chinese and emoji survive the round trip.

How to use Base64 encode and decode

  1. 01Choose encode or decodeText ⇄ Base64.
  2. 02Paste the textAny length.
  3. 03Copy the resultWith its size.
File character arranging marked pages

3 bytes become 4 characters.

Base64 writes binary data with 64 safe characters (A–Z, a–z, 0–9, + and /). The text is first turned into UTF-8 bytes, then every 3 bytes (24 bits) become 4 characters of 6 bits each, with = padding at the end when the bytes don’t divide by 3. URL-safe Base64 (RFC 4648) uses - and _ instead of + and /, and the decoder reads both.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

What is “Hello, world!” in Base64?

SGVsbG8sIHdvcmxkIQ==. The 13 bytes make four full groups of 3 and one leftover byte, which is why it ends in ==.

Is Base64 encryption?

No. Anyone can decode it; it only makes data safe to put in email, JSON, URLs or HTML. Never use it to hide passwords.

Why did I get hex instead of text?

The Base64 held bytes that are not UTF-8 text, such as an image or a zip file. They are shown as hex so you can see what is there.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.