Skip to content
Image Runs offline

Image to Base64

Convert an image to a Base64 data URI for inline embedding.

File

Output

0 chars
Ctrl

Questions

Is my image uploaded anywhere?

No. The file is read with the browser's FileReader API and encoded locally. It never leaves your device, which is why this works with the network disconnected.

When is inlining an image a good idea?

For small assets, roughly under 4 KB, where saving a request outweighs the cost. Base64 inflates data by about 33% and inlined images cannot be cached separately from the document, so a large inlined image is downloaded again on every page load.

Open SVG Preview

SVG Preview

Render SVG markup live and export it as a data URI or PNG.

Image