Convert a JPEG to ASCII Art With jp2a
Turn a photo into monochrome ASCII characters sized to your terminal.
Run jp2a --width=80 photo.jpg to print the picture as ASCII text.
01Command
Command
$ jp2a --width=80 photo.jpg02What it does
jp2a samples the JPEG and maps brightness onto a character ramp, producing pure text output that works anywhere. Use --width to fit the terminal, --chars to change the ramp and --colors for ANSI color. The result can be redirected to a .txt file.
03Risk
!Warning: Very small or low-contrast images can become unrecognizable; increase the width for more detail.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Talinx/jp2aEvidence: Documents -width, --chars and color options for jp2a.
- Homebrew formula: jp2aEvidence: Installs jp2a, which converts JPEG images to ASCII text.
Last verified: 2026-09-20 · Category: Media