Home › All Tools › Image to Base64

Convert an image to Base64 (a data URI you can paste into HTML or CSS), or decode Base64 back into an image. Both directions, free.
Tap to choose an image or drag & drop it here
Upload the image in section A. The tool reads it as a data URI (data:image/png;base64,…) which you can copy with one click.
Paste the Base64 string or data URI in section B and press Decode & Preview. You can then download the image as a PNG.
It is the image encoded as text, so you can embed a small image directly in HTML or CSS without a separate file — for example <img src="data:image/png;base64,…">.
Yes — JPG, PNG and WebP images all encode to Base64 here.
No. Encoding and decoding happen inside your browser — your images never leave your device.
Merge PDF · JPG to PDF · PDF to JPG · Split PDF · Rotate PDF Pages · QR Code Generator · Barcode Generator · Age Calculator · BMI Calculator · Percentage Calculator · Loan EMI Calculator · Unit Converter · Word Counter · Case Converter · JSON Formatter · Password Generator · Japanese Name Generator · Japanese Names List · Palworld Breeding Calculator · Image Cropper · Rotate Image · Flip Image · Black and White Image · Sepia Filter · Brightness and Contrast · Image to Base64 · Add Text to Image · Add Watermark to Image · Favicon Generator · Meme Maker · Blur Image · Sharpen Image · Color Picker from Image · Round Corners Image · Invert Image Colors · Transparent PNG Maker · Add Border to Image · Image Compressor · Image Resizer · Image Format Converter