Image ↔ Base64 — encoder et décoder
Étapes: choose files, adjust options, export. exemple: sample color blocks demo. processus: local in browser, no upload. Tool: encode image to data URL or decode Base64 to file. Soft limits ~25MB / 8192px apply.
Comment ça marche
Use Encode to read a file as a data URL, or Decode to paste Base64 and download an image.
Règles
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.
Exemple
Sample encodes a small PNG and shows the data URL in the output box.
Bons cas
- 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.
Questions ou retours
Quelque chose n’est pas clair, cassé ou manquant ? Rédigez un message ci-dessous — nous lisons chaque note.