Imagem ↔ Base64 — codificar e decodificar
Passos: choose files, adjust options, export. exemplo: sample color blocks demo. processo: local in browser, no upload. Tool: encode image to data URL or decode Base64 to file. Soft limits ~25MB / 8192px apply.
Como funciona
Use Encode to read a file as a data URL, or Decode to paste Base64 and download an image.
Regras
Encode uses readAsDataURL. Decode accepts data:image… or raw Base64 (default MIME image/png).
- Optional strip of the data: prefix for raw Base64.
- Invalid strings show an error.
- Large strings may use more memory.
- Nothing is uploaded.
Exemplo
Sample encodes a small PNG and shows the data URL in the output box.
Bons usos
- Embed small icons in HTML/CSS.
- Debug email or markdown image payloads.
- Recover a preview from a Base64 dump.
Frequently asked questions
Uploaded?
No.
Data URL vs raw?
Data URLs include a MIME prefix; raw is only the Base64 body.
Huge files?
Possible but memory-heavy—prefer compress first.
Which MIME on decode?
Taken from the data URL, or image/png for raw.
Animated GIF?
Encoded as a file blob; animation is not edited here.
Dúvidas ou feedback
Algo pouco claro, quebrado ou faltando? Escreva abaixo — lemos cada mensagem sobre estas ferramentas.