Skip to content
UniKit

Image to ASCII

Turn an image into ASCII art: 20–200 columns, aspect-ratio compensation and four character sets, with inversion and an alpha threshold, exported as plain text.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Images are processed locally in your browser with Canvas and never uploaded.

Pick an image first (PNG / JPEG / WebP / GIF all work).

Result

No result yet

80
0.5
128

Result details

These are the real numbers from this run — copy them straight out.

Pick an image and set the options; sizes, pixel count and export size show up here.

What this tool does

  • Add an ASCII cover to a README, a code comment or terminal output — plain text travels anywhere.
  • Turn a screenshot into ASCII art and paste it into a chat window when sending images is not an option.
  • Use the default charset on a dark terminal and tick "Invert" for light documents so the art stays visible.

Example

Input

A 4×1 grey ramp (luminance 0 / 85 / 170 / 255), 20 columns, minimal charset "@. ", aspect 1

Output

The first line starts with @ — the darkest pixels map to the first character of the set

Straight from toAscii: each column block is averaged with alpha weighting and mapped onto the charset; inversion flips that mapping.

Frequently asked questions

Why is the output not square?

Character cells are not square. The default aspect compensation of 0.5 says a glyph is about twice as tall as it is wide, which keeps the picture proportional to the source. Raise or lower it to stretch or squash.

Is 80 columns too wide?

80 columns means 80 characters per line, which fits both a standard terminal and Markdown. Go to 120–200 for more detail or 20–40 for a chunkier look.

How are transparent areas handled?

Blocks whose alpha falls below the threshold are written as blanks, so an image with a transparent background does not produce a ring of noise.

Does it modify my original file?

No. The output is plain text; the source pixels are read only, and there is no upload endpoint.

Keywords:ascii artimage to asciiascii generatortext artcharacter art

Related tools