Base64 Decoder

Supports Data URLs and raw Base64. Automatically detects images for preview; non-image content will be displayed as text when possible.

Input
Paste your Base64 or Data URL
Tip: URL-safe Base64 (with - and _) is also supported automatically
Output
Preview / Text / Download
MIME-
Size-
No output yet. Paste content on the left and click “Decode”.

Decode Base64 back to images and files

Use this Base64 decoder when you receive a Data URL, an inline image string, or raw Base64 from an API response and need to preview or download the original content. It supports common image MIME types, text output, and file download without requiring an account.

How to decode Base64
  1. Paste a full Data URL or switch to raw Base64 input.
  2. Choose the MIME type when the input does not include a data: prefix.
  3. Click Decode, then preview images, copy decoded text, or download the restored file.
Base64 decode example
Input
data:text/plain;base64,SGVsbG8gSW1hZ2VCYXNlNjQ=
Decoded output
Hello ImageBase64
Common inputs this decoder handles
  • Data URLs such as data:image/png;base64,... copied from HTML, CSS, JSON, or browser tools.
  • Raw Base64 strings without the data: prefix, when the MIME type is known separately.
  • URL-safe Base64 strings that use - and _ instead of + and /.
Before decoding, check these details
  • If the string starts with data:, keep the full Data URL so the tool can read the MIME type automatically.
  • If you only have raw Base64, choose the correct MIME type before decoding so previews and downloads use the right file extension.
  • Very large Base64 strings can be slow to parse in the browser, so files intended for CDN delivery should usually stay as normal image URLs.

Common Base64 decode errors

Missing or wrong MIME type
Raw Base64 does not describe whether the result is PNG, JPEG, SVG, PDF, or text. Select the expected MIME type before downloading.
Truncated Base64 strings
A copied value can be cut off by logs, spreadsheets, chat apps, or line wrapping. If decoding fails, copy the original value again from the source.
Non-Base64 Data URLs
Some Data URLs use URL-encoded text instead of ;base64. This decoder expects Base64 input when restoring files.

Frequently asked questions

Why does my Base64 image not preview?
The most common reasons are missing padding, a wrong MIME type, a copied string that was truncated, or a Data URL that is not actually Base64 encoded.
Can I decode Base64 to text?
Yes. If the decoded content is not an image, the tool tries to display it as UTF-8 text and lets you copy the result.
Should I use Base64 for large production images?
Usually no. Base64 increases size and prevents normal image caching. It is best for small inline assets, debugging, temporary transfers, and API workflows.