Skip to main content
DevTools24

이미지를 Base64로

HTML, CSS 또는 JavaScript에 직접 삽입하기 위해 이미지를 Base64로 변환합니다.

Click to upload or drag and drop an image

Supports PNG, JPG, GIF, SVG, WebP

Image to Base64 - 기술 세부 정보

Base64 encoding allows binary image data to be represented as ASCII text, enabling you to embed images directly in HTML, CSS, or JavaScript without separate image files. This reduces HTTP requests but increases file size by ~33%.

명령줄 대안

# Encode image to Base64 in terminal
base64 image.png

# Create data URI
echo "data:image/png;base64,$(base64 image.png)"

참조

공식 사양 보기