Base64 to image converter

Converting Base64 to image decodes the text back into the original file bytes.

Features

  • Type detectionPNG, JPEG, GIF, WebP and SVG are recognized from the data.
  • DetailsShows dimensions and size.
  • Runs on your deviceYour data is processed in the browser and is never uploaded.

How to use the Base64 to image

  1. Paste Base64 or a data URL.
  2. Check the preview.
  3. Download the image.

Truncated strings

A string cut off by a log or spreadsheet cell limit shows as incomplete or damaged.

Decode in Node.js

import { writeFileSync } from 'node:fs';
writeFileSync('image.png', Buffer.from(base64, 'base64'));

Frequently asked questions

Do I need the data: prefix?

No.

Why does it not recognize my data?

It may not be an image, or may be encoded twice.

Do SVG scripts run?

No. SVG is displayed as an image.

Related tools