ascii-campixels → characters

How to turn a photo into ASCII art

By Erin Kerr ·

To turn a photo into ASCII art, upload it to a converter, pick a set of characters ordered from dark to light, adjust contrast and character size until the shapes read, then save the result. In ascii-cam this runs in your browser, and the photo isn't uploaded anywhere.

There are a few ways to do this. Command line tools and Python scripts give you full control, AI generators will imitate the look, and online converters are the quick route. The top guides also agree on one thing worth knowing up front: some tools give you copyable text and some give you a picture, and you should pick based on where the result is going.

I built ascii-cam as a webcam tool first, but it takes photos too. This post is the photo route in it, with the real settings.

Turn a photo into ASCII art in six steps

  1. Open ascii-cam. It starts on your webcam, so press Upload image and pick a photo. Any image type works.
  2. Choose a character set from the dropdown. Nine presets plus a Custom box where you type your own characters, dark to light. ASCII characters from dark to light shows each one.
  3. Set the text and background colors. The default is green text on near black.
  4. Raise or lower Contrast (-1 to 2) and Brightness (-1 to 1) until the subject stands out.
  5. Set Char size (6 to 28 px). Smaller characters mean more of them, so more detail.
  6. Press Save PNG.

The art redraws as you move each slider, so you can tune it by eye instead of guessing.

What makes a photo work

Every guide I opened says the same thing in different words: contrast matters most. Each character is picked from how bright that part of the photo is, so a photo with clear light and dark areas keeps its shape and a flat one turns into mush. How ASCII art works has the exact math if you're curious.

Settings that matter for a still photo

SettingWhat it does to a photo
Character setFewer characters (Blocks, Density simple) give bold shapes. The 70 character Density (complex) set gives finer tone steps
Char sizeThe biggest change to how much detail you see
ContrastSeparates the subject from the background
InvertFlips light and dark. On by default, because light text on a dark background needs the ramp flipped. Turn it off for dark text on a light background
BrightnessShifts the whole photo lighter or darker

What the photo looks like in the frame

An uploaded photo keeps its whole frame. It isn't cropped, and the leftover space becomes black bars. A webcam image is different: it fills the frame and gets cropped.

It's an image, not text

ascii-cam saves a PNG. There's no copy as text option, so you can't paste the result into a README or a chat. If you need that, use a converter with text output. If you want a picture to post, or a GIF or video of yourself instead, that's what it's for.

Privacy

The photo becomes a local object URL in your browser and is converted on your device. It isn't uploaded.

FAQ

What's the difference between ASCII art as an image and as text?

Text is characters you can copy and paste, and it only looks right in a monospaced font. An image is a picture of the characters, so it looks the same everywhere. ascii-cam makes the image kind.

What size photo should I use?

One character stands in for a block of pixels, because the photo is shrunk to one pixel per character cell. So a sharp, well lit photo matters more than a huge one. One guide suggests keeping text converter uploads around 400 to 800 pixels wide, but I haven't set a size limit in ascii-cam.

Can I use my own characters?

Yes. Type them into the Custom box, dark to light. Order is what matters.

Try it

Open ascii-cam, press Upload image and drop in a portrait with good light.

Try it on your webcam in ascii-cam