
ImageSizeReducer
@imagesizereducer
Decode an encoded image string into the picture it represents and save it as a file. Both forms are accepted: a full data URI with its prefix, and a bare payload copied from an API response, a log, or a configuration file.
Base64 is a way of writing binary data using only characters that survive being copied through systems designed for text.
A decoder that accepts the string as it was copied, whether that includes a prefix, line breaks, or neither.
Both forms accepted
A full data URI is trimmed back to its payload automatically, and a bare string is decoded as-is, so the input does not have to be prepared first.
Whitespace tolerated
Line breaks from a wrapped encoder and stray spaces from a copy and paste are stripped before decoding rather than treated as data.
Preview before saving
The decoded image is shown on the canvas, which is how a truncated string or a mismatched media type becomes obvious immediately.
Saved as a real file
The output is an ordinary image file that can be opened, edited, and uploaded anywhere, rather than a preview that only exists on the page.
Decoded on the device
The string is processed in the page and never sent anywhere, which matters for payloads pulled from private APIs or internal logs.

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer

ImageSizeReducer
@imagesizereducer
Three steps, and the only thing worth checking afterwards is whether the media type declared in the string matches what you convert Base64 to PNG expecting to see.
Drop the string into the input, complete with any prefix or formatting. Nothing needs trimming first, and line breaks are handled during decoding.
The picture appears on the canvas. This is the moment to notice that the declared type and the contents disagree, since the preview shows what the bytes actually are.
Save the file and give it an extension that matches its real contents. The result is the original image data, not a re-encoded approximation.
Four kinds of work where an image exists only as text and needs to become a file.
Backend developers
API responses that embed images as strings
Checking what an endpoint actually returned is far quicker by pasting the field into a decoder than by writing a script. It is the difference between seeing the image in seconds and in minutes.
Email developers
templates with inline assets
Templates arrive with every graphic embedded, and the original files are unavailable. Decoding pulls them back out so they can be reused, resized, or handed to somebody who needs an actual asset.
QA engineers
log excerpts attached to bug reports
A payload in a log tells you whether the encoding is the problem or something further down the line. Being able to look at the picture rather than reason about the string removes an entire category of guesswork.
Data analysts
image fields exported from a database
Some tables store images as encoded text, and the question is often simply what is in there. Decoding a couple of rows by hand is the fastest way to find out before designing an export.
What the string represents, and how the two common forms differ.
Paste the value, check the decoded preview against the declared media type, and download the bytes it actually contains.
Decode this stringSmaller files, same picture.