🔐 Base64 Encoder & Decoder

Encode text and files to Base64, or decode Base64 to text. Runs in your browser.

Last updated: November 8, 2026 · By the BoltQuickTools team

Move bytes through a text-only channel

JSON fields, HTTP headers and data URIs can only carry text, so binary data and awkward characters get Base64-encoded on the way in. Developers reach for this page to produce such a string quickly, or to see what a string they found actually contains.

Three modes

  1. Pick Encode, Decode or File to Base64 at the top.
  2. For text, fill in Input and click Convert. Pasting converts on its own, but typing does not.
  3. Use Copy Output, or Clear to start again. The line under the output shows the time taken and the character counts.
  4. For a file, drop it on the box or click to browse. The result appears under Base64 Output, with Copy for the bare string and Copy as Data URI for a string starting data:image/png;base64, or whatever type the browser reports.

Sample conversions in both directions

ModeInputOutput
EncodeHelloSGVsbG8=
Encodehéllo ✓aMOpbGxvIOKckw==
DecodeaMOpbGxvIOKckw==héllo ✓
Decode (no padding)SGVsbG8Hello

Text is converted to UTF-8 bytes first, which is why the seven characters of héllo ✓ become sixteen of Base64. For a look at why those byte counts differ, see the character encoding article.

Input it will refuse or change

Is Base64 a way to hide something?

No. Anyone can reverse it with no key, as this page shows. Never treat a Base64 string as protected.

Why is the output longer than the input?

Every 3 bytes become 4 characters, so the result is about a third larger, plus up to two = signs of padding. Non-English text grows further because UTF-8 uses several bytes per character.

Does my text or file leave the browser?

The conversion uses the browser's built-in btoa, atob and FileReader, and the tool's code makes no network request with your input. The page separately loads Google web fonts, the site's analytics script, and ad scripts if you accept them, as every page here does.