Gambar ↔ Base64 — encode & decode
Langkah: choose files, adjust options, export. contoh: sample color blocks demo. proses: local in browser, no upload. Tool: encode image to data URL or decode Base64 to file. Soft limits ~25MB / 8192px apply.
Cara kerja
Use Encode to read a file as a data URL, or Decode to paste Base64 and download an image.
Aturan
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.
Contoh
Sample encodes a small PNG and shows the data URL in the output box.
Cocok untuk
- 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.
Pertanyaan atau masukan
Ada yang kurang jelas, rusak, atau hilang? Tulis pesan di bawah — kami membaca setiap catatan tentang alat ini.