Switch to English?

Switching reopens this page. Unsubmitted files, edits and browser processing results will not move to the other domain.

Submitted server tasks remain accessible. Files keep their original deletion deadlines.
Destination website:

Image Base64 Encoder & Decoder

Convert images to and from Base64, preview, copy or download locally without uploading content.

Improve this tool

Image Base64 converter

Use a modern browser with Workers, OffscreenCanvas and a secure connection.

Source image

Choose an image to start

JPG / PNG / WebP / GIF / BMP

Original file bytes and metadata are preserved

Encoded result

Large text shows the first 64 Ki characters. Copy and download include the complete content.

JPG / PNG / WebP / GIF / BMP · Up to 20 MiB, 20MP and 16384px per edge. SVG and HTML are not supported. Animation previews show the first frame; downloads retain all bytes.

Processed content stays in this page’s memory and cannot be recovered after clearing or closing.

About this tool

Convert JPG, PNG, WebP, GIF and BMP to and from Base64 or data URLs in your browser. Original bytes, metadata and animation are preserved; previews show the first animation frame. Drop an image, import TXT, locate errors, copy full encodings or download. SVG/HTML active content is not supported.

How to use

  1. Choose Image to Base64 and drop a file, or paste/import TXT in Base64 to image mode.
  2. Wait for local validation and preview. Correct indicated errors or parse again.
  3. Copy Base64 or a data URL, download the complete TXT, or download the restored image. Clear releases the content.

Frequently asked questions

Are images or encodings uploaded?

No. Only status, duration, check counts and copy/download actions are reported. Images, encodings, filenames and content are never sent. Content cannot be recovered after leaving, reloading or clearing.

Which formats and sizes are supported?

JPG/PNG/WebP/GIF/BMP, up to 20MiB, 20MP and 16384px per edge. Administrators may lower limits. SVG, HTML, remote URLs and non-Base64 data URLs are unsupported. Import TXT as UTF-8.

Are image bytes changed?

No. Base64 changes the representation of bytes; it does not compress, remove metadata or re-encode images. Downloads match the original bytes. Animation previews show the first frame while downloads retain the original animation.

Why is only part of the encoding shown?

Large outputs show the first 64Ki characters for a responsive mobile experience. Copy and TXT download include all content. The display selector controls whether TXT includes the data URL prefix.

Can I omit padding or add line breaks?

Standard Base64, ASCII whitespace and omitted trailing padding are accepted. Length, padding and trailing bits are checked. URL-safe letters, incorrect MIME, damaged or oversized images are rejected.

COMMUNITY

Discussion & comments

Share your experience and discover more ways to use this tool.

Loading comments…