← The Lab
// The Lab

Image to ASCII converter

Turns any image into text art, as a plain text file and as a coloured image.

PythonPillow

Give it a PNG or JPG and it gives back two things: a text file with the ASCII art, and a JPG where every character keeps the colour of the part of the image it came from. You can set the size, up to 200 characters wide, and the brightness.

Each block of the image is measured for how bright it is, and swapped for a character with about as much ink: dense characters like @ and # for dark parts, light ones like . and : for bright parts.

The animation above is the famous spinning ASCII donut. Move across it and the lens reveals another famous donut, pink frosting and sprinkles included.

Convert your own image

Everything happens in your browser, the image isn't uploaded anywhere.