Security & Encryption 도구 업데이트됨 1일 전

Data URI / Base64 To Image Converter

Turn a Data URI or raw Base64 string back into a previewable, downloadable image. Choose the MIME type, add an optional file name and check the decoded dimensions.

Decoding is local, but an image from an untrusted source is still untrusted. The current build has a duplicate paste control, so paste directly into the textarea.

Data URI Input Base64 to Image Convert Data Download Image

사용법 Data URI / Base64 To Image Converter

Base64 / 데이터 URI → 이미지

데이터 URI(:imagedata/...;base64,...) 또는 원시 Base64를 붙여넣으면 브라우저에서 즉시 이미지를 미리 보거나 다운로드할 수 있습니다.
클라이언트 측 전용
팁: Base64 원본 데이터를 붙여넣는 경우, 아래에서 올바른 MIME 유형(예: image/png)을 선택하세요.
확장자는 MIME 유형을 기준으로 자동으로 선택됩니다.
도구 링크
클립보드에 복사되었습니다.
이 도구를 개선하는 데 도움을 주세요

내용 읽기

이 도구의 작동 방식과 사용 시기를 알아보세요.

Data URI / Base64 to Image

What a Data URI image is

A Data URI packs an image into a text string. It starts with data:, then a media type such as image/png, then a base64 marker and the encoded bytes. Browsers can display that string directly in an image tag, which is why small icons sometimes appear inside HTML or CSS without a separate file. This page goes the other way: it takes a Data URI or a raw Base64 string and turns it back into a preview and a downloadable image.

Raw Base64 versus a full Data URI

A full Data URI contains the media type, so the page can infer the format. A raw Base64 string contains only the payload, so you must choose the correct MIME type yourself. If you choose PNG for JPEG bytes, the preview may fail or the downloaded file may not open in some applications. If you are unsure, inspect the first characters of the decoded data or ask the person who supplied the string for the original media type.

How to convert the string

Paste the Data URI or raw Base64 into the textarea. Choose the matching MIME type from the list: PNG, JPEG, WebP, GIF, SVG, BMP or AVIF. Optionally enter a file name without a path. Press convert. The page decodes the payload, shows an image preview, reports the width and height, regenerates a clean Data URI and estimates the byte size. Use the download button to save the image.

Choosing the right MIME type

The type must match the actual bytes, not the file extension you want. A JPEG normally starts with bytes that identify JFIF or Exif, while a PNG starts with a characteristic signature. SVG is text-based XML, not a bitmap. AVIF support depends on the browser's decoder. If the preview is blank, try the other likely type, but do not keep guessing blindly; a wrong label can produce a file that opens in one program and fails in another.

Preview, dimensions and file name

The preview is rendered by the browser. The width and height come from the decoded image, so they are a useful check that the string contains the image you expected. The optional file name is used for the download; the extension is added from the selected MIME type. Keep the name short and avoid slashes, quotes and control characters. The page does not upload the file, rename it on a server or create a permanent link.

Supported formats and browser limits

The menu covers common web formats, but support is ultimately browser-dependent. PNG, JPEG, GIF and WebP are widely supported. SVG previews as an image and may be restricted by browser security rules. BMP is large but usually readable. AVIF needs a modern browser with an AVIF decoder. There is no explicit size cap, but a very large Base64 string can freeze the tab because the whole value is held in memory. Split or compress huge images before pasting.

Why the preview can fail

A blank preview usually means the Base64 is truncated, contains whitespace or line breaks that were not cleaned, uses an unexpected alphabet, or is labelled with the wrong MIME type. A Data URI copied from a chat app may have lost characters. A string copied from a database may include escaped quotes. If the page reports an image error, re-copy the full value and confirm that it begins with a valid data: prefix or a clean Base64 payload.

The paste button issue

The page has more than one control with the same paste identifier, so the settings-area paste action can do nothing in the current build. Paste directly into the textarea with the keyboard or the browser's context menu. The main convert, clear, copy and download buttons are the reliable path. If a button appears unresponsive, try the keyboard shortcut or paste manually rather than assuming the image is invalid.

Security and privacy

Decoding runs in your browser, so the string is not sent to Newisty. That does not make an unknown image safe. SVG can contain scripts or external references, and a downloaded file can be malicious regardless of its extension. Treat images from untrusted sources with caution, open them in a sandboxed viewer if necessary, and do not run an SVG as a script. Clear the textarea when you are done if the content is sensitive.

When this is useful

It is handy for recovering a small image from an HTML email, a CSS file, a JSON API response or a database dump. It can also help you inspect a Data URI before embedding it in a page. It is not a batch converter, an image editor or a compression tool. If you need to resize, crop or reduce the file size, decode the image first and use an image editor, then re-encode it.

Common problems

If the downloaded file will not open, check the selected MIME type and the first bytes of the payload. If the dimensions are wrong, you may have decoded a different image than you expected. If the textarea rejects a very long string, the browser may be hitting a memory limit. If the file name has no extension, add one manually only after confirming the real format. If the Data URI contains a charset parameter, the decoder may still accept it, but the media type must be correct.

What not to do

Do not paste a production secret or a private photo into a public page without checking how it is handled. Do not trust the MIME type alone as a security check. Do not use this page to edit, resize or compress an image. Do not assume a decoded SVG is harmless. Do not strip characters from a Base64 string to make it fit; a truncated payload will not decode correctly.

Frequently Asked Questions

자주 묻는 질문

사용자가 결과를 신뢰하기 전에 자주 묻는 질문에 대한 간결한 답변.

No. Decoding and previewing happen in your browser. The string is not sent to Newisty. The browser still holds the image in memory, and any file you download is stored on your device, so manage sensitive content accordingly.

A Data URI includes a media type and a base64 marker before the payload, while raw Base64 contains only the encoded bytes. With raw Base64 you must select the correct MIME type manually. A full Data URI usually tells the page what type to expect.

The string may be truncated, contain spaces or line breaks, use an unsupported alphabet or be labelled with the wrong MIME type. Re-copy the complete value, remove line breaks, and check the media type. An SVG may also be blocked by browser security rules.

The menu lists PNG, JPEG, WebP, GIF, SVG, BMP and AVIF. Actual support depends on the browser. PNG, JPEG, GIF and WebP are the safest choices. AVIF needs a modern decoder, and SVG previews can be restricted.

Yes. Enter a name without a path, and the page uses it for the download with an extension based on the selected MIME type. Avoid slashes, quotes and control characters. The name does not change the image bytes.

The current build has duplicate paste identifiers, so the settings-area paste control may be inactive. Paste directly into the textarea with Ctrl+V or the context menu. The convert and download controls still work.

Not necessarily. SVG is XML and can contain scripts or external references. Open untrusted SVGs in a sandboxed viewer, do not execute them as scripts, and do not assume that a successful preview proves the file is harmless.

댓글 (0)

사용자 토론, 예외적인 사례 및 추가 팁을 위한 공간입니다.
댓글 남기기
댓글을 제출하면 공개적으로 표시됩니다.
아직 댓글이 없습니다. 가장 먼저 댓글을 남겨보세요!
저희에게 알려주세요!
이 도구와 관련된 문제를 신고하기

발생한 문제를 자세히 설명해 주시면, 저희가 이를 조사하고 도구를 개선할 수 있습니다.

가장 도움이 되는 것은 무엇인가
입력 내용, 예상 결과, 실제 결과, 브라우저/기기 정보를 기재해 주시고, 도움이 될 경우 스크린샷도 첨부해 주세요.
스크린샷 버튼은 브라우저에 표시된 페이지를 캡처하여 생성된 이미지를 이 양식에 첨부합니다.
전체 화면 스크린샷
newisty를 통해 브라우저에서 캡처되었습니다.
아직 스크린샷을 찍지 않았습니다.
도구 보고서