Image to Base64

Convert an image to Base64 and get ready-to-use data URL, HTML img and CSS background code. Inline images without external files.

Click to choose an image, or drag & drop it here (up to 5MB)

preview
File name
Format
Original size
Base64 size

Base64 adds ~33% size. Best for small icons and avatars; large images are better served as separate files via CDN.