Developer tools

Base64 image encoder and decoder

Turn an image into a Base64 data URL, or decode Base64 back to an image file.

Base64 image encoder and decoder
Esc to restore

Your inputs

One PNG, JPEG, GIF or WebP image, up to 3 MB. Nothing is uploaded.

Standard padded Base64, or a data:image/...;base64 URL for a PNG, JPEG, GIF or WebP image of up to 3 MB.

Run the tool when your settings are ready.

Your result

Your result will appear here.

More actions

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Encodes file bytes without modifying the image, or decodes strict standard padded Base64 into the original bytes. Reads PNG, JPEG, GIF and WebP signatures and checks that a data URL’s declared type matches the bytes. Signature checking identifies a type but does not validate the entire image. SVG and other active document types are not accepted. Up to 3 MB of decoded bytes. Files stay on the device; only explicit copying or downloading exports them.