Image to Base64
Convert any image to a Base64 data URL instantly online, for free. Supports PNG, JPG, GIF, WebP, and SVG — great for embedding images in CSS.
Drop an image here or click to upload
PNG, JPG, GIF, WebP, SVG · Max 5 MB
Choose fileRelated tools
Base64 Encoder / Decoder
Encode or decode Base64 text and files instantly online.
Image Compressor
Compress JPG, PNG, and WebP images online with a quality slider and before/after size comparison.
Favicon Generator
Generate favicon PNGs (16, 32, 48) and an Apple Touch icon from text or an uploaded image.
Image Resizer
Resize images to exact pixel dimensions online with optional aspect-ratio lock.
Frequently asked questions
How do I use Image to Base64?+
Supports PNG, JPG, JPEG, GIF, WebP, and SVG. Output includes the full data URL and the raw Base64 string separately. Useful for embedding images in CSS, HTML, or JSON without a file reference. Nothing is uploaded — the conversion happens locally in your browser