Convert Base64 to JPG

JPEG payloads are recognised by their FF D8 FF signature. Paste the string and you get a .jpg back, padding and wrapping handled.

Any format accepted: prefixed, raw, wrapped, URL-encoded, URL-safe, or broken.

Decoding options — auto-detected by default; override only when the result looks wrong

Treats - and _ as the URL-safe alphabet (+ and /). Leave it off for ordinary Base64 that happens to contain those characters.

Skips signature detection. Use it when the bytes are a valid image that the signature check does not recognise.

Your image appears here

Paste on the left — no button to press. Everything stays in your browser.

When you need this

  • A camera or scanning API returns a JPEG and you need the file, not a data URI.
  • You are inspecting a thumbnail blob that you suspect is JPEG-compressed.
  • An upload endpoint rejected a file and you want to check what was actually sent.

Why other Base64 converters fail here

Tools that assume PNG will save JPEG bytes with a .png extension, which many viewers then refuse to open.

JPEG has no length field in its header, so tools cannot detect truncation from the signature alone and will happily save a half-file.

Strings from camera APIs are frequently line-wrapped at 76 characters, and a decoder that is whitespace-sensitive stops at the first newline.

Frequently asked questions

How is a JPEG recognised, given it has no signature length?

By the three-byte start-of-image marker FF D8 FF, followed by segment markers. That is enough to identify the format confidently. What it cannot tell you is whether the file is complete — JPEG has no single total-length field, so a truncated JPEG still looks like a valid JPEG at the header level.

My JPEG decodes but the bottom half is grey.

That is truncation, and it is the single most common JPEG failure. The bytes simply stop partway. The result panel reports the exact decoded byte count; compare it with the size reported by whatever produced the string. If the source wrapped lines at 76 characters, a copy-paste that dropped one line is the usual culprit.

Does the tool re-compress or strip EXIF metadata?

Neither. The decoded output is the original byte sequence, untouched. EXIF — including GPS coordinates and camera model — survives exactly as it was, which matters if you are about to publish the image. Strip metadata before sharing, not after.

Can I batch-convert several JPEG strings at once?

Yes — select or drop multiple .txt files and the batch view processes them one at a time, showing progress and per-file results. You can then download them individually or as a single archive.

Related tools