Base64 encoder and decoder

Encode UTF-8 text to Base64 and decode it back in your browser.

Was this helpful?
Share Tool

Base64 splits bytes into 6-bit groups and writes each group as A–Z, a–z, 0–9, + or /. The encoded string is about one third longer than the UTF-8 bytes. This page does that mapping in the current tab: type on the left and Base64 updates, or paste Base64 on the right to rebuild the text. FlashKit does not upload the string.

“Hello World” encodes to SGVsbG8gV29ybGQ=. That uses the standard alphabet and ends with = because the byte length is not a multiple of three. Padding with = brings the output to a multiple of four characters. Non-ASCII text is first encoded as UTF-8 (é is two bytes, then Base64), not as a Unicode code-point dump.

A URL-safe variant replaces + and / with - and _ so the string can sit in a query. This widget encodes and decodes the original +/ alphabet only — paste URL-safe Base64 and it will not round-trip. For decimal ↔ binary ↔ hex numbers, use the binary converter.

How to encode or decode Base64

  1. Type or paste UTF-8 text on the left. Base64 appears on the right.
  2. Or paste a Base64 string on the right (A–Z, a–z, 0–9, +, /, =) to rebuild text.
  3. Copy either box. Close the tab when you are done — nothing is stored.

Key Features

  • UTF-8 text ↔ standard Base64 in this browser tab
  • Copy buttons on both boxes
  • Clear error on invalid Base64
  • No file upload, no URL-safe alphabet, and no binary-number mode

Frequently Asked Questions

What alphabet does this encoder use?

The standard Base64 alphabet: A–Z, a–z, 0–9, +, / and = padding. It does not encode or decode the URL-safe -/_ variant.

Why is there an equals sign at the end?

Padding. Base64 emits four characters per three bytes. When the UTF-8 length is not a multiple of three, = fills the last group so the string length is a multiple of four.

How are non-English letters encoded?

The text is first turned into UTF-8 bytes, then those bytes are Base64-encoded. é is C3 A9 in UTF-8, which becomes w6k= — not a hex code point.

Is this a binary number converter?

No. It encodes text as Base64. For numbers, open the binary converter.

Is my text uploaded?

No. Encoding uses this tab only. Refreshing restores the sample.

Expert Guide for Base64 Encoder / Decoder

View Blog
The Developer's Guide to Base64 Encoding and Decoding

The Developer's Guide to Base64 Encoding and Decoding

Base64 is essential for handling binary data in text-based environments. Learn how to use a Base64 encoder/decoder for images, APIs, and more.

Read Guide

Categories

Browse all FlashKit tools