Codificador e decodificador Base64
Codifique texto UTF-8 em Base64 ou decodifique de volta. Base64 é codificação, não criptografia.
Entrada
Dica: pressione Ctrl + Enter para executar
Configurações salvas
Por enquanto, a ajuda detalhada abaixo está disponível apenas em inglês.
Sobre esta ferramenta
Base64 represents bytes using 64 safe characters, so binary data or non-ASCII text can travel through systems that expect plain text: email attachments, data URLs, HTTP basic authentication headers and many APIs. This tool encodes text as UTF-8 and then Base64, or decodes Base64 back to readable text.
Base64 is not encryption. Anyone can decode it, so never treat a Base64 string as hidden or secure.
Como usar
- Paste the text to encode, or the Base64 string to decode.
- Choose encode or decode.
- Run the tool.
- Copy the result. For images, use image to Base64 instead.
Como o cálculo funciona
Encoding converts the text to UTF-8 bytes and then to standard Base64 with padding. Decoding removes whitespace, checks the Base64 format and decodes the bytes as strict UTF-8, refusing invalid byte sequences.
UTF-8 ⇄ Base64Exemplo prático
Encoding "Café €5" produces Q2Fmw6kg4oKsNQ==. The accented é and the euro sign take two and three bytes in UTF-8, which is why the result is longer than the seven visible characters suggest, and the two = signs pad it to a multiple of four. Decoding Q2Fmw6kg4oKsNQ== returns Café €5.
Exemplo de entrada e resultado
Olá → T2zDoQ==
Limitações
- Text only; binary output is refused when decoding.
- Standard alphabet with padding.
- Up to 100,000 characters.
Última atualização:
Perguntas frequentes
Is Base64 secure?
No. It is an encoding that anyone can reverse instantly.
Does it support Base64URL (with - and _)?
It uses standard Base64 with + and /. For Base64URL, replace - with + and _ with /, and add = padding before decoding.
Why does decoding fail on some strings?
The string may not be valid Base64, or it may encode binary data (such as an image) that is not UTF-8 text.
Solução de problemas
Decoding gives an error for a JWT segment.
JWTs use Base64URL without padding. Use the JWT decoder.
A data URL will not decode.
Remove the "data:...;base64," prefix and decode only the part after the comma.
Line breaks in the Base64 cause problems.
Whitespace is removed automatically before decoding; check for other characters such as quotes.
Privacidade & Uso gratuito
Meus dados são armazenados?
Seus dados ficam nesta aba. Não recebemos seus arquivos, textos colados nem valores de cálculo.
Esta ferramenta é gratuita?
Sim. Não é preciso cadastro nem pagamento.
Veja também
Próximos passos úteis
Formatador e validador de JSON
Valide, formate ou minifique JSON localmente. Dados inválidos nunca são enviados a um servidor.
Desenvolvimento e SEOConversor de CSV para JSON
Converta cabeçalhos e registros CSV em JSON, com suporte a delimitadores entre aspas e quebras de linha.
Desenvolvimento e SEOConversor de JSON para CSV
Converta uma lista plana de objetos em CSV. Textos parecidos com fórmulas recebem um prefixo de proteção para planilhas.
Desenvolvimento e SEO