이미지 Base64 변환
Image to Base64
Base64·data URI란?
Base64는 이미지 같은 바이너리 데이터를 영문자·숫자·기호로만 이루어진 텍스트로 표현하는 인코딩 방식입니다. 이렇게 만든 문자열 앞에 data:image/png;base64, 같은 접두어를 붙이면 data URI가 되어, 이미지 파일 없이도 HTML·CSS 안에 이미지를 직접 담을 수 있습니다.
사용 방법
① 이미지 → Base64: 이미지를 선택하거나 끌어다 놓으면 자동으로 Base64 결과가 만들어집니다. data: 접두어 포함 여부와 스니펫 형태(원본 텍스트·<img>·CSS background)를 선택할 수 있습니다.
② Base64 → 이미지: Base64 문자열이나 data URI를 붙여넣으면 미리보기가 표시되고, 이미지를 다운로드할 수 있습니다.
용량 증가 안내
Base64로 인코딩하면 원본 바이너리보다 약 33% 정도 용량이 커집니다. 텍스트로 다루기 편해지는 대신 크기가 늘어난다는 점을 고려해 사용하세요.
개인정보 · 안전성
인코딩·디코딩·미리보기·다운로드까지 전 과정이 브라우저 안에서만 이루어지며, 파일은 서버로 전송되거나 저장되지 않습니다.
What is Base64 / data URI?
Base64 encodes binary data like images as plain text (letters, digits, symbols). Prefixing that text with data:image/png;base64, makes it a data URI, letting you embed an image directly inside HTML or CSS without a separate file.
How to use it
① Image → Base64: pick or drop an image and the Base64 result is generated automatically. Choose whether to include the data: prefix and pick a snippet type (raw text, <img>, CSS background).
② Base64 → Image: paste a Base64 string or data URI to preview it, then download the resulting image.
Size increase
Base64 encoding is roughly 33% larger than the original binary. It's convenient as text, but keep the size trade-off in mind.
Privacy & safety
Encoding, decoding, previewing and downloading all happen entirely in your browser — files are never uploaded or stored on a server.
자주 묻는 질문
Base64란 무엇인가요?
data URI는 어디에 쓰이나요?
Base64로 변환하면 용량이 늘어나나요?
업로드한 이미지가 서버로 전송되나요?
FAQ
What is Base64?
What is a data URI used for?
Does Base64 increase file size?
Is my image uploaded to a server?
안내: 본 도구는 이미지를 브라우저에서 Base64로 변환·복원하는 참고용 도구입니다. 결과의 정확성은 원본 파일과 브라우저 환경에 따라 달라질 수 있습니다.
Note: This tool converts images to and from Base64 in your browser for reference purposes. Results may vary depending on the source file and browser environment.