᠎᠎᠎          
51K

Base64 png encoder

World's simplest image tool

Free online PNG to base64 encoder. Just drag and drop your PNG image and it will automatically get converted to base64. There are no ads, popups or nonsense, just an awesome PNG to base64 encoder. Load a PNG – get base64. Created by engineers from team Browserling.
We created a cloud browser! Browserling
Check out our project Browserling – anonymous cloud browser.
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.
Base64 png encoder tool What is a base64 png encoder?
This tool encodes PNG images to base64 text. You can also set the length of each base64 line. This will split base64 text into chunks. Remember that base64 length is always a multiple of 4 so make sure chunk length is divisible by 4. The resulting base64 can also be transformed into a valid image Data URI. Easy and fast!
Base64 png encoder examples Click to use
Base64-encode a PNG image
This example creates a base64-encoded PNG. The original PNG image is 165KB in size but as base64 is 4/3 larger then the output size is 220KB.
This example creates a base64-encoded PNG. The original PNG image is 165KB in size but as base64 is 4/3 larger then the output size is 220KB.
/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. Also to demonstrate base64 data splitting into lines. The length of every line is set to be 32 characters.
This example first encodes a PNG image to base64 and then it creates a valid Data URL from it. Also to demonstrate base64 data splitting into lines. The length of every line is set to be 32 characters.
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?
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 rotate any image by arbitrary angle.
Quickly resize any image to any size.
Quickly crop any 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 add text to any image.
Quickly convert any color in an image to transparent.
Quickly change the visual quality of any image.
Quickly convert a PNG image to a JPEG image.
Quickly convert a JPEG 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 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 convert a bitmap image to base64 encoding.
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 decode base64 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 convert an image to base64 encoding.
Quickly decode base64 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 make corners of any image rounded.
Quickly generate a random image.
Coming soon These image tools are on the way
Image Editor
Edit images in your browser.
Annotate an Image
Add annotations (text, labels, arrows, boxes) to images.
Replace a Color in Image
Change one color to another in any image.
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.
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 Image Background
Make the background of an image transparent.
Add Image Background
Add a background to a transparent image.
Censor an Image
Hide information in an image by blurring it or blacking it out.
Generate an Empty Image
Create an empty image of arbitrary size.
Generate a Custom Image
Create a custom image of any color and width/height.
Adjust Image Brightness
Increase or decrease the brightness of an image.
Adjust Image Contrast
Increase or decrease the contrast of an image.
Adjust Image Hue
Increase or decrease the hue of an image.
Adjust Image Saturation
Increase or decrease the saturation of an image.
Adjust Image Lightness
Increase or decrease the lightness of an image.
Split an Image
Split an image into parts.
Slice an Image
Slice a part of an image.
Skew an Image
Skew an image by the given angle.
Shift an Image
Shift an image to the left or to the right.
Swirl an Image
Create a pixel vortex anywhere in an image.
Invert Image Pixels
Invert the color of an image.
Create a Thumbnail
Convert an image to a thumbnail
Add Artefacts to an Image
Add compression artefacts to an image.
Create a Glitch Image
Convert a PNG, GIF, JPG or BMP to glitch art.
Explode an Image
Explode an image into a bunch of tiny pieces.
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.
Create a Web-safe Image
Convert the colors in an image to the web-safe color palette.
Convert Image Bits Per Pixel
Change an image bit depth to 32, 24, 16, 8, 4, 2 bits or just 1 bit.
Compress an Image
Make the file size of an image smaller.
Optimize an Image
Optimize the quality of an image.
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.
Convert an Image to Black/White
Convert all colors in an image to just black and white.
Select a Color in an Image
Use a color picker to select a color in an image.
Add a Label to an Image
Add a short one-line label to an image.
Add a Watermark to an Image
Add copyright protection to an image.
Apply Dithering to an Image
Run a dithering algorithm on 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.
Image Viewer
Open and view images in your browser.