pressione ⌘K para trocar de ferramenta
ENCODE & DECODE

Base64 Codificar / Decodificar

Codifique ou decodifique strings Base64 com suporte completo a UTF-8.

local
❯ base64
INPUT · text0 B
OUTPUT · base640 B
IN
0 B
OUT
0 B
RATIO
TIME
runs on input · nothing is sent
§01 SOBRE ESTA FERRAMENTA

Overview

Base64 maps arbitrary bytes to a 64-character ASCII alphabet (A–Z, a–z, 0–9, +, /). It lets you carry binary data through channels that only reliably handle text — data URIs, JSON, email (MIME), and HTTP headers. This tool converts as you type and shows input/output byte sizes, the size ratio, and conversion time.

How to use

  1. Pick a mode with the encode / decode tabs in the header.
  2. Paste or type into the INPUT pane — the OUTPUT pane updates on every keystroke.
  3. Use copy ⧉ to grab the result, or clear to reset the input. The stats bar below shows IN, OUT, RATIO, and TIME.

Examples

  • Hello, worldSGVsbG8sIHdvcmxk
  • こんにちは44GT44KT44Gr44Gh44Gv (UTF-8 handled correctly)
  • Decoding SGVsbG8sIHdvcmxkHello, world

Notes

Base64 is encoding, not encryption — it provides no confidentiality and anyone can decode it. Expect output roughly 1.33× the input size (the RATIO stat makes this visible). Decoding invalid input shows invalid base64 — check characters and padding instead of a result.

FAQ
Is my data sent to a server?
No. Base64 encoding and decoding happen entirely in your browser using the built-in TextEncoder and btoa/atob APIs. Nothing is uploaded or stored.
Does this support Unicode and emoji?
Yes. Input is encoded as UTF-8 before Base64 conversion, so multi-byte characters and emoji round-trip correctly.
Why do I get an invalid base64 error when decoding?
The decoder rejects strings containing characters outside the Base64 alphabet or with broken padding. Check for stray whitespace inside the string, missing = padding, or URL-safe variants that use - and _ instead of + and /.