What is a Base64 image?
It is the image file written as text, so it can be placed directly inside HTML, CSS or JSON without a separate file.
Developer Tools
Convert an image to a Base64 string or data URL for HTML, CSS and JSON.
Get a Base64 string or data URL you can paste into HTML, CSS or JSON.
Your image stays private. It is encoded in your browser and never uploaded.
Drop a PNG, JPG, GIF, WebP or SVG image.
Data URL, plain Base64, an HTML img tag or CSS background.
Copy the code and paste it into your HTML, CSS or JSON.
It is the image file written as text, so it can be placed directly inside HTML, CSS or JSON without a separate file.
Yes, about 33% bigger. It is best for small images like icons and logos.
Some email apps block Base64 images. A hosted image link is more reliable for email.
No. It is encoded in your browser.
JPG, PNG, and WebP all store images, but picking the wrong one gives you blurry photos, huge files, or lost transparency. Here is exactly when to use each, in plain English.
Read guide →A large PDF is a pain to email or upload, but most compressors either barely shrink it or turn your crisp text into a blurry mess. Here is how to reduce PDF file size while keeping it looking clean.
Read guide →Combining several PDFs into one file used to mean paid software or uploading private documents to a stranger server. Here is the faster, safer way to merge PDF files for free.
Read guide →