Our Network


Coming Soon


Coming Later

base64 png encoder

world's simplest image tool

Free online base64 PNG encoder. Just drag and drop your PNG image here and it will be automatically converted to a base64 text. You can optionally split the base64 data into chunks of equal length and create a valid Data URI. Created by engineers from team Browserling.

᠎᠎᠎          Tool Options

Base64 Line Length

Split base64 output into lines.
How many characters per chunk?

Data URL

If you enable this option, then
base64-encoded PNG will be
converted into a Data URL.

What is a base64 png encoder?

This tool encodes PNG images into base64 text. To do this, the imported image is first converted to binary data and then encoded in the base64 format. The resulting PNG image in base64 format can be used for various purposes, such as embedding it in web pages to avoid external dependencies, transmitting it over text-based protocols, or storing it in a database as text. Since the encoded PNG in base64 has much longer representation, the program offers an option to split the base64 text into chunks of fixed width for convenience. Please note that the length of base64 is always divisible by 4, so make sure the chunk length is a multiple of 4. The output base64 text can also be transformed into a valid image Data URI. Image-abulous!


Base64 png encoder examples

Click to try!

Base64-encode a PNG Image

This example creates a base64-encoded PNG. The original PNG image is 165KB in size but as base64 is 1⅓ larger than the original data, then the output size is 220KB. (Source: Pexels.)

/9j/4AAQSkZJRgABAQEASABIAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAA [...]
Required options
These options will be used automatically if you select this example.
Split base64 output into lines.

Base64-encode a PNG into Data URI

This example first encodes a PNG image to base64 and then it creates a valid Data URL from it. Additionally, it shows the process of splitting base64 data into lines, with each line containing a maximum of 32 characters. (Source: Pexels.)

data:image/png;base64,iV BORw0KGgoAAAANSUhEUgAAAo AAAAPACAYAAACl4sj7AAAgAE lEQVR4XpS9WbMtXXYdNLLP3Z z+3vv1VaVqZckGCYEBSbbLNn aEHXRB8GJeeMIRvPPCA+GfgH njDxAEEcjCEIEQYTtkW62Fpb AllapUqkb1NXWb0+8m+0xijL lWZu59T0lw7atb3zm7yVy51p [...]
Required options
These options will be used automatically if you select this example.
Split base64 output into lines.
How many characters per chunk?

Convert a PNG to Base64 Chunks

In this example, we convert a PNG image of yellow tulips to its base64 representation. We print the resulting base64 data as fixed-length strings, each of which contains 40 characters (one per line). (Source: Pexels.)

/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBggG BQkIBwgKCQkKDRYODQwMDRoTFBAWHxwhIB8cHh4j JzIqIyUvJR4eKzssLzM1ODg4ISo9QTw2QTI3ODX/ 2wBDAQkKCg0LDRkODhk1JB4kNTU1NTU1NTU1NTU1 NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1 NTU1NTU1NTX/wgARCAHgAoADASIAAhEBAxEB/8QA [...]
Required options
These options will be used automatically if you select this example.
Split base64 output into lines.
How many characters per chunk?

All Image Tools

Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!

Quickly pixelate an area of an image.

Quickly blur an area of an image.

Quickly sharpen an area of an image.

Quickly increase or decrease the brightness of an image.

Quickly increase or decrease the contrast of an image.

Quickly increase or decrease the lightness of an image.

Quickly increase or decrease the hue of an image.

Quickly increase or decrease the saturation of an image.

Quickly add a sepia effect to an image.

Quickly add a rainbow effect to an image.

Quickly apply a popular filter to an image.

Quickly rotate any image by an arbitrary angle.

Quickly resize any image to any size.

Quickly create a larger image from a smaller image.

Quickly create a smaller image from a larger image.

Quickly upsize an image's dimensions proportionally.

Quickly downsize an image's dimensions proportionally.

Quickly crop an area of any image.

Quickly slice a part of an image.

Quickly cut out the desired fragment of an image.

Quickly convert a color image to a grayscale image.

Quickly make multiple copies of an image.

Quickly flip an image horizontally.

Quickly flip an image vertically.

Quickly change the orientation of an image to horizontal or vertical.

Quickly change image orientation from horizontal to vertical.

Quickly change image orientation from vertical to horizontal.

Quickly add text to any image.

Quickly add annotations (text, labels, arrows, boxes) to images.

Quickly add copyright protection to an image.

Quickly hide information in an image by blurring it or blacking it out.

Quickly hide any face in an image behind a blur layer.

Quickly hide any face in an image behind a pixel layer.

Quickly hide any face in an image and safeguard personal data.

Quickly apply a blur mask to car license plates in the image.

Quickly apply a pixel mask to car license plates in the image.

Quickly hide any license plate in an image from unwanted views.

Quickly add noise (pixel grain) effect to an image.

Quickly convert any color in an image to transparent.

Quickly add translucency to the given image.

Quickly make the background of an image transparent.

Quickly add a background to a transparent image.

Quickly change one color to another in any image.

Quickly change the visual quality of any image.

Quickly convert a PNG image to a JPG image.

Quickly convert a JPG image to a PNG image.

Quickly convert a PNG image to a GIF image.

Quickly convert a GIF image to a PNG image.

Quickly convert a PNG image to a BMP image.

Quickly convert a BMP image to a PNG image.

Quickly convert a WebP image to a JPG image.

Quickly convert a JPG image to a WebP image.

Quickly convert a WebP image to a PNG image.

Quickly convert a PNG image to a WebP image.

Quickly convert a WebP image to a GIF image.

Quickly convert a GIF image to a WebP image.

Quickly convert a WebP image to a BMP image.

Quickly convert a BMP image to a WebP image.

Quickly base64-encode a PNG image.

Quickly decode a base64-encoded PNG image.

Quickly convert a BMP image to a GIF image.

Quickly convert a GIF image to a BMP image.

Quickly convert a JPEG image to a bitmap image.

Quickly convert a bitmap image to a JPEG image.

Quickly base64-encode a BMP image.

Quickly base64-decode a bitmap image.

Quickly base64-encode a WebP image.

Quickly base64-decode a bitmap image.

Quickly convert a JPEG image to a single-frame GIF image.

Quickly convert an animated GIF to a JPEG image.

Quickly convert a GIF to base64 encoding.

Quickly convert a base64 encoding to a GIF.

Quickly view and extract frames from GIF animations.

Quickly play a GIF animation frame by frame.

Quickly base64-encode a JPEG image.

Quickly decode a base64-encoded JPEG image.

Quickly change the compression level of a JPG image.

Quickly make the file size of an image smaller.

Quickly convert an image to base64 encoding.

Quickly convert base64 encoding to an image.

Quickly convert an image to a Data URL.

Quickly convert a Data URL to an image.

Quickly add a border around an image.

Quickly remove the border that surrounds the image.

Quickly create a colored outline around objects in the image.

Quickly pad an image from all sides.

Quickly expand an image by adding space around it.

Quickly make corners of any image rounded.

Quickly generate a random image.

Quickly generate an image from text typed on your keyboard.

Quickly explode an image into a bunch of tiny pieces.

Quickly split an image into smaller parts.

Quickly cut an image into horizontal or vertical strips.

Quickly skew an image by the given angle.

Quickly an image to the left or to the right.

Quickly convert all colors in an image to just black and white.

Quickly convert a multicolor image to a duotone image.

Quickly convert an image to the binary art.

Quickly run a dithering algorithm on an image.

Quickly decrease the number of colors in an image.

Quickly simplify the color scheme of the image.

Quickly create a custom image of any color and width/height.

Quickly create an image with a linear or radial gradient.

Quickly create an empty image of arbitrary size.

Quickly create a one-color image of the desired shade.

Quickly invert all pixels in an image to the opposite color.

Quickly use a color picker to select a color in an image.

Quickly find dominant colors in an image.

Quickly find the tones that form the color palette of the image.

Quickly generate image size, format, pixel, and color palette information.

Quickly confirm or refute the PNG image format.

Quickly confirm or refute the JPG image format.

Quickly confirm or refute the WebP image format.

Quickly confirm or refute the GIF image format.

Quickly confirm or refute the BMP image format.

Quickly determine the image file size in bytes and kilobytes.

Quickly find the width, height, orientation, and aspect ratio of an image.

Quickly open and view images in your browser.

Quickly redraw an image using only web-safe colors.

Quickly separate RGBA, CMYK, and HSL channels from an image.

Quickly show the red, green, blue, and alpha channel of the RGBA color scheme.

Quickly show the hue, saturation, and light channels of the HSL color scheme.

Quickly show the hue, saturation, and value channels of the HSV color scheme.

Quickly show the hue, saturation, and intensity channels of the HSI color scheme.

Quickly show the cyan, magenta, yellow, and key channels of the CMYK color scheme.

Quickly show the lightness, A, and B channels of the LAB color scheme.

Quickly show the luma (Y) and chrominance (I and Q) channels of the YIQ color scheme.

Quickly show the hue, chroma, and luminance channels of the HCL color scheme.

Quickly show the luminance, chroma, and hue channels of the LCH color scheme.

Quickly show the Y (luma), Cb (blue-difference), and Cr (red-difference) channels of the YCbCr color scheme.

Quickly change the base color scheme in the image.

Quickly refine the image object's edges by removing noisy pixels.

Quickly select any object in the image and extract it by its color.

Quickly remove a specific color region from any image.

Quickly remove a green screen from any image.

Quickly remove a chroma key from any image.

Quickly check if an image has transparent pixels.

Quickly view transparent, semi-transparent, and opaque areas in an image.

Quickly generate a black silhouette of objects in an image.

Quickly create a stencil from opaque objects in an image.

Quickly rotate pixels around a central point in an image.

Quickly convert an image to a polaroid snapshot.

Quickly add a symmetrical part to your image.

Quickly optimize the quality of an image.

Quickly add a block or glitch compression effect to the image.

Quickly convert an image to R, G, B values.

Quickly create an image from an R, G, B array.

Quickly convert an image to hex codes.

Quickly create an image from a list of hex codes.

Quickly convert a set of symbols into an image using color assignment rules.


Coming Soon

These image tools are on the way!
Image Editor

Edit images in your browser.

Create a Fibonacci Spiral

Place images on a grid so that they make a Fibonacci spiral.

Convert PNG to ICO

Convert a PNG image to an ICO icon.

Convert ICO to PNG

Convert an ICO icon to a PNG image.

Convert PNG to TIFF

Convert a PNG image to a TIFF image.

Convert TIFF to PNG

Convert a TIFF image to a PNG image.

Convert JPG to ICO

Convert a JPEG image to an ICO icon.

Convert ICO to JPG

Convert an ICO icon to a JPEG image.

Convert JPG to TIFF

Convert a JPEG image to a TIFF image.

Convert TIFF to JPG

Convert a TIFF image to a JPEG image.

Convert GIF to ICO

Convert a GIF image to an ICO icon.

Convert ICO to GIF

Convert an ICO icon to a GIF image.

Convert GIF to TIFF

Convert a GIF image to a TIFF image.

Convert TIFF to GIF

Convert a TIFF image to a GIF image.

Convert GIF to Animated PNG

Convert a GIF image to an APNG icon.

Convert Animated PNG to GIF

Convert an APNG image to a PNG image.

Convert BMP to ICO

Convert a bitmap image to an ICO icon.

Convert ICO to BMP

Convert an ICO icon to a bitmap image.

Convert BMP to TIFF

Convert a bitmap image to a TIFF image.

Convert TIFF to BMP

Convert a TIFF image to a bitmap image.

Convert Webp to ICO

Convert a Webp image to an ICO icon.

Convert ICO to Webp

Convert an ICO icon to a Webp image.

Convert Webp to TIFF

Convert a Webp image to a TIFF image.

Convert TIFF to Webp

Convert a TIFF image to a Webp image.

Create an Animated GIF

Create an animated GIF image from static frames.

Create Image from BGR Array

Create an image from an B, G, R array.

Create Image from RGBA Array

Create an image from an R, G, B, A array.

Create Image from BGRA Array

Create an image from an B, G, R, A array.

Enhance Image Quality

Increase the quality of an image.

Reduce Image Quality

Decrease the quality of an image.

Extract Text from Image

Apply OCR on an image and extract all text from it.

Remove Text from Image

Erase text or label from an image.

Remove Object from Image

Erase any object from an image.

Create a Thumbnail

Convert an image to a thumbnail

Create a Glitch Image

Convert a PNG, GIF, JPG or BMP to glitch art.

Run Zalgo on an Image

Let Zalgo destroy an image.

Convert Image Color Space

Change an image color space to HSL, HSV, CMYK, or RGB.

Convert Image Bits Per Pixel

Change an image bit depth to 32, 24, 16, 8, 4, 2 bits or just 1 bit.

Create an Image Mosaic

Create a mosaic wall from multiple images.

Generate ASCII Art from an Image

Create an ASCII art image from a regular image.

Generate ANSI Art from an Image

Create an ANSI art image from a regular image.

Generate Unicode Art from an Image

Create a Unicode art image from a regular image.

Generate Braille Art from an Image

Create a Braille art image from a regular image.

Add a Label to an Image

Add a short one-line label to an image.

Delete a Watermark from an Image

Remove a watermark from an image.

Add Halftone Effect to an Image

Create an image made out of dots of varying size and spacing.

Blockify an Image

Convert an image to a bunch of blocks.

Add Progressive Effect to an Image

Create a GIF from the original image with interlacing effect.


Subscribe!

Subscribe to our updates. We'll let you know when we release new tools, features, and organize online workshops.

Enter your email here


Feedback. We'd love to hear from you! 👋