utills.
Türkçe
PNG to Base64

Convert a PNG to Base64

Encode a PNG to a Base64 string or data URI — transparency intact, with copy-ready CSS and HTML — free and right in your browser.

Kodlamak için bir görsel bırakın

Sürükle ve bırak, yapıştır veya dosya seç

PNG · JPG · WebP · GIF · SVG — cihazınızda kodlanır

Keeps transparencyCopy or .txtNo sign-up PNG · JPG · WebP · GIF · SVG

Encoding PNG images to Base64

PNG is the format for logos, icons, screenshots, and anything with a transparent background — exactly the kind of small asset you often want to inline as Base64. Encoding a PNG to a data URI lets you drop it straight into a CSS file or HTML email with no extra request, and the transparent areas are preserved exactly because Base64 copies the file byte-for-byte.

This tool reads your PNG in the browser and returns the raw Base64 body, the full data:image/png;base64 URI, and ready CSS and HTML snippets. Nothing is re-compressed, so the decoded image is identical to the original PNG.

How to convert a PNG to Base64

  1. Open your PNG. Drag the PNG onto the tool above, choose a file, or paste it from your clipboard.
  2. Pick your output. Switch between the raw Base64, the data:image/png URI, a CSS rule, or an <img> tag.
  3. Copy or download. Tap Copy, or save the Base64 as a .txt file.

Great for transparent icons

Because PNG keeps an alpha channel, inlining a transparent PNG as a data URI is ideal for small icons that sit on coloured backgrounds — no separate file, and the transparency just works.

More Base64 & data URI tools

Sık sorulan sorular

Does encoding a PNG keep transparency?

Yes. Base64 copies the PNG's exact bytes, including the alpha channel, so transparency is fully preserved when the string is decoded back.

Is PNG-to-Base64 lossless?

Yes. There's no re-compression — the Base64 is an exact text representation of the original PNG file.

What does the data URI look like for a PNG?

It starts with data:image/png;base64, followed by the encoded body, e.g. data:image/png;base64,iVBORw0KGgo…

Where is my image processed?

The encoding and decoding happen in your browser, so the result is created on your own device. How any data associated with the tool is handled is described in our privacy policy.

Daha fazla görsel aracı

Find your next tool

37 tools

Compress image Shrink file size while keeping quality. Resize image Change width and height to any size. Crop image Trim images to the exact frame you want. Convert image Switch between JPG, PNG, WebP and more. Remove background Erase the background in one click. Image to PDF Combine images into one PDF document. Rotate & Flip Turn, straighten, and mirror photos. Image to text Pull editable text out of any image. HEIC to JPG Open iPhone HEIC photos as JPG. Watermark Stamp text or logos over your images. Collage Arrange multiple photos into a grid. Favicon Generator Build favicons in every required size. Color Picker Grab hex colors and build palettes. Blur & Pixelate Obscure faces, plates, and private bits. Enhance Auto-fix brightness, contrast, and color. Passport Photo Prepare photos for ID and passport applications. Signature Clean up and extract handwritten signatures. Photo Effects Apply filters and vintage looks. Social Image Size covers for common social platforms. Add text to image Caption images and make memes fast. GIF Maker Turn frames or clips into animated GIFs. Border & Frame Add clean borders and photo frames. Mockup Drop screenshots into device frames. SVG Converter Trace raster images into scalable SVG. EXIF Viewer Inspect camera and GPS metadata. Poster & Print Lay out posters and print-ready sheets. Document Scanner Deskew and clean photographed documents. Image to Base64 Encode images into a data-URI string. Placeholder Make dummy placeholder images on demand. Image generator Make gradients, patterns, and avatars. Compare Images See two images side by side with a slider. QR Code Create and download QR codes. Hide Text in Image Embed a secret message inside a picture. Length converter Meters, feet, inches, miles and more. Weight converter Switch between kilograms, pounds and more. Temperature converter Celsius, Fahrenheit, Kelvin and more. Data storage converter Bits, bytes, megabytes and gigabytes.
Tab to move · Enter to open · Esc to close