imgto64

// convert any image into a self-contained base64 data url — no server, no upload

Drop image here
or click to browse
PNGJPEGGIFWEBPSVGBMP
1
Reading file
2
Encoding
3
Building URL
Done
Preview
DATA URL
// how it works
01
File picked
Browser receives a File object from your disk. Nothing is uploaded anywhere.
02
FileReader reads
The FileReader API reads the raw binary bytes into memory locally.
03
Base64 encoding
Binary is encoded to Base64 — ASCII-safe text, ~33% larger than original.
04
URL assembled
Prefixed with data:[mime];base64, — a complete, self-contained image URL.
100% client-side · no server · no storage · image never leaves your device · works offline