October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

How to Make ASCII Art From a Photo Using a Command-Line Tool

Use jp2a to turn a local photo into classic character art, then tune its dimensions and character ramp or prepare the image with ImageMagick.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For classic character-based art, run jp2a photo.jpg in a terminal. jp2a’s manual documents JPEG, PNG, and WebP input, along with controls for output dimensions, character selection, color, and background. If you want ANSI/Unicode character art or terminal graphics instead, use Chafa; if the photo needs preparation, resize or adjust a copy with ImageMagick first.

Convert a photo with jp2a

Install jp2a using the package manager for your operating system or the project’s installation instructions. There is no single installation command that applies across platforms, and package versions may differ, so check the instructions for your system.

As an Amazon Associate I earn from qualifying purchases.

  1. Open a terminal in the folder containing the image, or provide its path.
  2. Run jp2a photo.jpg, replacing photo.jpg with your image’s filename. The jp2a manual also documents PNG and WebP input.
  3. Check whether the result fits your terminal and whether the subject is recognizable. Adjust the output dimensions or other rendering options if needed.

jp2a can also accept URLs, but a local image is the simplest starting point. Its options include --chars for choosing the character ramp, as well as controls for dimensions, color output, and background treatment. Consult the manual for the version you installed to confirm exact syntax and available flags.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Adjust the output when it is hard to read

Change the width or height

Character art has limited spatial resolution: each character occupies a relatively large area, so fine details in a photo may disappear. Try changing the output dimensions until the main subject is legible at the size where you plan to view it. A width that fits the intended terminal or display is a practical starting point, but there is no universally best size; the image, character cell proportions, and display all matter.

Choose a different character ramp

The characters jp2a uses affect how light and dark parts of the image are represented. Use --chars to choose a ramp, and consult the installed manual for its syntax. A different ramp can change contrast and texture, so judge it by how clearly it renders the important shapes in your image.

Prepare a copy of the photo

If changing the rendering options is not enough, preprocess a copy of the image with ImageMagick. Its command-line tools document resizing and other image operations. For example, resize or otherwise adjust the copy, then pass that prepared file to jp2a. The useful adjustment depends on the photo and the result you want; keep the original unchanged so you can compare versions.

Choose a tool for the output you want

Need Tool What it offers
Classic character-based ASCII from JPEG, PNG, or WebP jp2a Character selection, dimensions, color, and background options.
ANSI/Unicode character art or terminal graphics Chafa Terminal display output with format selection; default behavior depends in part on terminal support.
Resize or otherwise process the source image ImageMagick Command-line resizing and other image operations; use it to prepare an image, not as the character-art renderer in this workflow.
A shell wrapper combining conversion tools Image2Term A community project describing a workflow involving ImageMagick and jp2a or Chafa. Check its current repository for project status, dependencies, and usage.

Pick based on the output destination and format you need, the controls you want, and what your terminal supports. jp2a is a direct route to classic character output; Chafa is an alternative for ANSI/Unicode character art or terminal graphics. Neither tool can be assumed to produce the best-looking result for every image or display.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Save or share the result

Output formats and save options differ between tools and versions. Check the current manual for the program you selected before using an output option or redirecting the result to a file. If you choose terminal graphics or colored output, confirm that the destination can display it; plain text, ANSI-colored characters, and terminal graphics are not interchangeable formats.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.