PNG to Base64

Convert PNG images to base64 code with ease.

Or drop your files here

This tool does not limit file size, but for more efficient generation, individual image files should generally not exceed 100K.
To start the conversion, upload your PNG images.

Base64 String

HTML <img> code

CSS Background Source

PNG to Base64 Converter

How to encode PNG to Base64. Click inside the file drop area to upload a file or drag & drop PNG. Note: You can upload only one file for the operation. The PNG file will be encoded to Base64 and rendered as a text string.

What is a PNG file?

BPortable Network Graphics (PNG) is a raster-based file type that compresses images for portability. PNG images can have RGB or RGBA colors and support transparency, which makes them perfect for use in icons, or graphic designs. PNG also supports animations with better transparency. The benefits of using PNG are Plus, PNG is an open format that uses lossless compression.

What is Base64?

Base64 is an encoding and decoding technique used to convert binary data to an American Standard for Information Interchange (ASCII) text format, and vice versa. It is used to transfer data over a medium that only supports ASCII formats, such as email messages on Multipurpose Internet Mail Extension (MIME) and Extensible Markup Language (XML) data.

Base64 is also known as Base64 Content-Transfer-Encoding.