Image Aspect Ratio Calculator
Work out ratios and missing dimensions without an image.
Turn a Base64 string or data URI back into an image file.
Decoded image
The Base64 to Image Converter decodes a pasted string or data URI back into a real file. It accepts raw Base64 or a full data URI, tolerates the line breaks that come from copying out of source, and works out the actual format from the decoded bytes rather than trusting a prefix that may be wrong.
Base64 image data turns up embedded in HTML, in CSS, in JSON payloads and in email source, and at some point you need the actual picture rather than the string. Paste it in and the image appears.
The parser accepts a raw Base64 blob or a complete data URI with its media type prefix, and tolerates the line breaks and whitespace that come with copying out of a source file. The real format is detected from the decoded bytes rather than trusted from the prefix, so a data URI mislabelled as PNG when it is actually JPEG still downloads with the correct extension. Dimensions and decoded size are reported alongside.
The file signature decides the extension, so data mislabelled in its prefix still downloads correctly.
Line breaks, whitespace and URL-safe Base64 are all handled rather than rejected.
The decoded image appears as you paste, with its dimensions and real size reported.
A truncated or corrupt string is reported as such instead of producing a silently broken file.
Blobs pasted from an email or an API response often contain something private, and none of it is transmitted.
A raw Base64 blob or a full data:image/... URI. Line breaks are fine.
The decoded image appears immediately, with its detected format and dimensions.
The real type is read from the file signature, not from the prefix, so mislabelled data is still handled.
Save it with the correct extension for what it actually is.
A way of embedding a file inside a URL. It looks like data:image/png;base64, followed by the encoded bytes, and lets an image live directly inside HTML or CSS instead of in a separate request.
Usually truncation from copying, or URL-safe Base64 using minus and underscore instead of plus and slash. The tool handles the latter automatically and reports the former rather than producing a broken image.
No. Decoding happens in the browser, which matters because Base64 blobs pasted from an email or an API response often contain something private.
About 33 percent, because three bytes become four characters. That overhead is why inlining is only worth it for very small assets.
What people who use the Base64 to Image Converter think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Base64 to Image Converter. It takes half a minute and no account.
Write the first reviewWork out ratios and missing dimensions without an image.
Size a cover photo that works on desktop and mobile.
Cut PNG file size by reducing the colour palette.
Set an image to 300 DPI, or any density a printer asks for.
Compress until the file fits a size you specify exactly.
Print a date onto a photo, read from its own EXIF.
Every current image size for every major platform.
Crop to 1:1, 4:5, 16:9, 9:16 or any ratio you type.