Image to Base64
Convert an image to Base64 text, ready for HTML or CSS.
How it works
- Drag an image into the box above or click to choose one from your device.
- Adjust the options on the right – the preview updates instantly.
- Click the download button and save the result.
A small image or icon can be embedded directly in page code. The tool outputs a data URI, a ready HTML tag or a CSS rule, with one-click copy.
Frequently asked questions
Are my images uploaded to a server?
No. Processing happens in your browser, on your device. The images never leave your computer or phone.
Is the tool free?
Yes. There is no sign-up, no limit on the number of images and no watermark on the result. The site is funded by ads.
Which image formats can I use?
JPG, PNG, WebP, GIF, BMP and, in recent browsers, AVIF. Convert iPhone HEIC photos to JPG on the phone first.
Is there a size limit?
We set no limit. Very large images (over 40 megapixels) may be slow or fail on phones with little memory.
More tools
Social media imageFit an image for Instagram, Facebook, YouTube, X, TikTok and LinkedIn.Favicon generatorCreate favicon.ico and all site icons (16–512 px) from one image.Colour pickerClick an image to read a colour (HEX, RGB, HSL) and get its main palette.Compress imageReduce image file size in KB – by quality or down to an exact target size (e.g. 20, 50 or 100 KB).Resize imageChange image dimensions in pixels or percent while keeping the aspect ratio.Crop imageCrop part of an image freely or to a fixed ratio (1:1, 4:3, 16:9…).Convert imageConvert images to JPG, PNG or WebP – several files at once.Rotate & flip imageRotate an image by 90°, 180° or any angle and mirror it.