Base64 ke Gambar

Baru

Dekode string Base64 dan pratinjau atau unduh gambar

Alat Developer

Cara Menggunakan Base64 ke Gambar

  1. 1Tempel string Base64 ke kolom input
  2. 2Pratinjau gambar muncul secara otomatis
  3. 3Klik Unduh untuk menyimpan gambar
  4. 4Klik Unduh untuk menyimpannya

Tentang Base64 ke Gambar

Base64 ke Gambar mendekode string gambar yang dikodekan Base64 kembali menjadi file gambar yang dapat dilihat dan diunduh.

Fitur Utama Base64 ke Gambar

  • Accepts full data URLs (data:image/...;base64,...) and raw Base64 strings
  • Automatic image format detection from the data URL MIME type
  • Instant browser-rendered image preview after pasting
  • One-click download of the decoded image file
  • Handles PNG, JPG, WEBP, GIF, SVG, and any browser-displayable format
  • No file upload — purely text input decoded in the browser
  • Works offline — no server or internet connection required after page load
  • Graceful error message when the input is not valid Base64

Format yang Didukung

Format Input

String URL data Base64String Base64 yang dikodekan mentah

Format Output

PNGJPGWEBPGIFSVG

Format output ditentukan oleh tipe MIME dalam awalan URL data.

Contoh

Extract image from API response

Copy the Base64 value from the JSON response, paste into the tool, and download the image to inspect it.

Input

JSON field: "thumbnail": "data:image/png;base64,iVBOR..."

Output

Downloaded PNG thumbnail file

Debug Base64 in HTML source

Paste the Base64 portion from the HTML src attribute to see what image is embedded without a browser devtools session.

Input

Raw Base64 string from an img src attribute

Output

Visual preview of the embedded image

Pulihkan gambar dari file konfigurasi

Tempel string Base64 yang tersimpan untuk mendekode dan mengunduh gambar logo asli.

Input

Base64-encoded logo from an application config

Output

Downloaded logo PNG for reuse

Kasus Penggunaan Umum

  • Preview and download images from API response payloads
  • Extract embedded images from HTML source or JSON config files
  • Recover image files from Base64 strings in log files
  • Debug image encoding pipelines by visually verifying output
  • Convert data URIs from CSS files back to standalone images
  • Extract images embedded in exported database records

Pemecahan Masalah

Pasting the string produces no image preview

Solusi

Ensure the string starts with "data:image/" for a full data URI, or is a valid raw Base64 string without extra whitespace or line breaks.

Decoded image appears corrupted or shows only noise

Solusi

The Base64 string may be incomplete or contain encoding errors. Verify the full string was copied without truncation.

Tool rejects the input string

Solusi

Remove the "data:image/png;base64," prefix if it appears twice, or strip surrounding quotes that may have been copied along with the string.

Pertanyaan yang Sering Diajukan

Format apa yang didukung?

Format gambar apa pun yang dikodekan sebagai URL data Base64, termasuk JPEG, PNG, WebP, dan GIF.

Apakah data saya dikirim ke server?

Tidak. Dekoding terjadi sepenuhnya di browser Anda.

What should I do if the image preview is blank?

Check for invalid characters. Base64 strings must not contain spaces or line breaks. Try re-copying from the original source.

Can I paste a URL instead of a Base64 string?

No. This tool only accepts Base64 strings or data URIs. To load an image from a URL, download the image file first then use the Image to Base64 tool.

Apakah ada batasan panjang untuk input Base64?

Tidak ada batasan keras. Batas praktis adalah memori browser Anda.

Apa bedanya dengan alat Gambar ke Base64?

Gambar ke Base64 mengubah file gambar menjadi string Base64. Base64 ke Gambar melakukan sebaliknya.

Apa yang harus dilakukan jika pratinjau gambar kosong?

Periksa karakter tidak valid. String Base64 tidak boleh mengandung spasi atau jeda baris.

Bisakah saya menempel URL alih-alih string Base64?

Tidak. Alat ini hanya menerima string Base64 atau data URI.