Codificador/Decodificador Base64 — Calculadora Online Grátis
Encode & decode Base64 with copy and reverse button
The Base64 Encoder/Decoder converts text or binary data to and from Base64 format — the encoding scheme used to embed images in HTML, pass data through URLs safely, and store binary content in text-only systems. It supports both encoding and decoding with a single click, making it a practical tool for web developers and system administrators.
Frequently Asked Questions
Sobre Esta Calculadora
Base64 encoding is everywhere in web development and system administration, even though most users never see it directly. It converts binary data into a safe ASCII text format that can be transmitted through systems designed to handle text — email servers, JSON APIs, CSS data URIs, and HTTP headers.
This tool handles both directions: paste plain text or binary data to encode it, or paste a Base64 string to decode it back. The output appears immediately and a copy button puts it on your clipboard. The reverse button swaps input and output so you can quickly validate a round-trip.
Base64 is not encryption — the encoding is fully reversible by anyone. Do not use it to hide sensitive information; use it only to safely transport data between text-based systems.
O Codificador/Decodificador Base64 converte texto ou dados para e do formato Base64.
Exemplo Resolvido
Encoding an API key for an HTTP Authorization header
Entradas:
- Input text: myUsername:secretPassword123
- Direction: Encode to Base64
Passo a Passo:
- Convert each character to its ASCII byte value
- Group bytes into 3-byte (24-bit) chunks
- Split each chunk into four 6-bit groups
- Map each 6-bit value to its Base64 character (A–Z, a–z, 0–9, +, /)
- Add = padding if input length is not divisible by 3