DevToolBox무료
블로그

이미지 Base64 변환

이미지를 Base64 문자열과 data URI로 변환. PNG, JPG, GIF, SVG, WebP 지원. 무료, 가입 불필요.

🖼️

Drop an image here or click to select

Supports PNG, JPG, GIF, SVG, WebP, ICO

About Image Base64 Encoding

This base64 to image converter lets you encode images to Base64 strings or decode Base64 back to viewable images. Embed images directly in HTML using <img src="data:image/png;base64,...">, in CSS with background-image: url(data:image/png;base64,...), or store them in JSON configs. Supports PNG, JPG, WebP, SVG, GIF, and ICO formats. The data URI format includes the MIME type prefix, while raw Base64 is just the encoded string. Best practice: only Base64-encode images under 10KB to avoid bloated HTML. All conversion happens client-side for privacy.

𝕏 Twitterin LinkedIn

💬 User Feedback

Have suggestions or found a bug? Leave a message and we'll get back to you.
0/2000

이 도구 평가

4.4 / 5 · 76 개 평가

최신 소식 받기

주간 개발 팁과 새 도구 알림을 받으세요.

스팸 없음. 언제든 구독 해지 가능.

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Drag & drop an image or click to select a file
  2. View the Base64 string, data URI, HTML tag, and CSS snippet
  3. Copy any format you need
  4. Switch to 'Base64 → Image' tab to decode

Common Use Cases

  • Embedding small icons in HTML/CSS
  • Including images in email templates
  • Storing images in JSON/YAML configs
  • Reducing HTTP requests for small assets

Frequently Asked Questions

What image formats are supported?
PNG, JPG/JPEG, GIF, SVG, WebP, ICO, and BMP. Any image format your browser can display.
Is there a file size limit?
No hard limit, but Base64 encoding increases size by ~33%. Images over 10KB are generally not recommended for Base64 embedding.
Is my image uploaded to a server?
No. All conversion happens entirely in your browser. Your images never leave your device.
What is the difference between a data URI and raw Base64?
A data URI includes the MIME type prefix like 'data:image/png;base64,' followed by the encoded string. Raw Base64 is just the encoded characters without the prefix. Browsers need the full data URI format to display images inline.
How do I use Base64 images in CSS background-image?
Use the syntax: background-image: url('data:image/png;base64,iVBOR...'). This tool generates the complete CSS snippet ready to copy and paste into your stylesheet.
How do I use Base64 images in HTML img tags?
Set the src attribute to the data URI: <img src="data:image/png;base64,iVBOR...">. This tool generates the complete HTML <img> tag with the encoded image ready to use.
What is the recommended image size limit for Base64 encoding?
Keep Base64-encoded images under 10KB (original file size). Larger images significantly increase HTML/CSS file size and hurt page load performance. Use regular image files with CDN for larger assets.
Can I convert Base64 back to a PNG or JPG file?
Yes. Switch to the 'Base64 to Image' tab, paste your Base64 string or data URI, and the tool will decode and display the image. You can then right-click to save it as PNG or JPG.