ANSI Art Converter
English

ANSI Art Converter: Image to ANSI & ASCII Art

Turn any picture into colorful text art for terminals, MUDs, BBS and Discord. Free, private and right in your browser.

Drop an image here

PNG, JPG, GIF (also animated), WebP, AVIF, SVG — or an .ans / .nfo file to view

Tip: Ctrl+V pastes an image or ANSI text straight from the clipboard.

Or try an example:

What this ANSI art generator does

The converter rebuilds your picture out of colored text characters. Each character cell shows two or more colored "pixels" — for example the half block ▄ with one color on top and one below. The result is real text with ANSI escape codes: it can be printed in a terminal, sent by a MUD or BBS, or pasted into Discord.

Everything happens in your browser. Your images never leave your device, so the tool also works offline and for private pictures.

Input
PNG, JPG, GIF (animated), WebP, AVIF, BMP, SVG — plus .ans, .asc, .diz and .nfo files to view
Output
.ans (UTF-8 or CP437 with SAUCE), PNG, animated GIF, HTML, plain text, code for Bash, Python, JavaScript, C, PHP, LPC and JSON, Discord code block
Colors
24-bit True-Color, 256 (xterm or VGA), 16 ANSI colors, 8 Discord colors, or none
Characters
Half blocks ▀▄, quarter blocks ▖▗▘▝, Braille ⣿, shading ░▒▓█, ASCII ramps
Size
4 to 400 columns, optional height limit, character shape from 1:1 to 2.5:1
Animation
Animated GIF, WebP and APNG with speed, frame range, every nth frame, reverse, back and forth and repeat count; effects for still pictures: modem build-up, fade-in, color cycle, scrolling
Privacy
Runs 100% in the browser, no upload, no account, installable as an offline app

How to convert an image to ANSI art

  1. Load a pictureDrop it on the preview, click "Choose image" or paste it with Ctrl+V. Animated GIFs keep their frames.
  2. Pick a styleEach preset shows a live thumbnail of your picture. "High detail" suits photos, "Pixel art" sprites, "Discord" chats.
  3. Set the width80 columns fits a classic terminal. Wider means more detail, narrower means smaller files.
  4. Fine-tuneAdjust brightness, contrast, sharpening and dithering. "Compare" shows the original side by side.
  5. ExportDownload the .ans file, copy the ANSI text, or export PNG, GIF, HTML, code or a Discord block.

Color modes compared

ModeColorsEscape codeWorks in
True-Color16,777,216ESC[38;2;R;G;BmWindows Terminal, iTerm2, Kitty, WezTerm, GNOME Terminal, Konsole, Mudlet
256 (xterm)256ESC[38;5;NmAlmost every terminal since the 2000s, tmux, screen, most MUD clients
256 (VGA)256ESC[38;2;R;G;BmDOS color look, needs True-Color support
16 colors16ESC[31m … ESC[97mEvery ANSI terminal, BBS software, Telnet, old MUD clients
Discord8ESC[30m … ESC[47mDiscord ```ansi code blocks (desktop and web)
No colors——Anywhere text works: READMEs, code comments, chats, e-mail

Character sets compared

CharactersPixels per cellBest for
▀ ▄ Half blocks1 × 2Photos and pixel art; two exact colors per cell, works in every UTF-8 terminal
▖ ▗ ▘ ▝ Quarter blocks2 × 2Twice the horizontal detail for shapes and logos; still two colors per cell
⣿ ⡇ Braille2 × 4The finest detail, ideal for line art and plain-text art
░ ▒ ▓ █ Shading1 × 2The classic BBS look; mixes two of 16 colors inside one cell
. : # @ ASCII1 × 1Plain ASCII art, readable everywhere, also without Unicode

Using your ANSI art

Terminal & shell

Print the file with cat art.ans (Linux, macOS) or type art.ans (Windows Terminal). For a greeting on every login, use the Bash export in your .bashrc or as /etc/motd.

MUDs & Telnet

Login screens, room pictures and NPC portraits: keep 78–80 columns, choose 16 or 256 colors for older clients, True-Color for Mudlet. The LPC export creates a ready function for LDMud.

Discord

Use the Discord preset and the Discord tab: it wraps your art in an ```ansi block, counts the characters and shrinks the width until it fits into one message.

BBS & art scene

The Retro BBS preset plus "CP437 + SAUCE" creates classic .ans files with title, author and group, viewable in PabloDraw, Moebius, Mystic BBS or ansilove.

Websites & docs

Embed the HTML export as a colored <pre> block, use the PNG on social media, or put Braille or ASCII text into a README.

Programs & scripts

Copy a ready snippet for Bash, Python, Node.js, C or PHP — for splash screens of CLI tools, games and installers.

Tips for better results

  • Crop to the subject. Text art has few pixels — a face or logo should fill the frame.
  • Strong contrast wins. Comics, logos and pixel art convert better than soft photos. Raise contrast or try the comic filter.
  • Sharpen small results. Below about 60 columns, 30–60% sharpening brings back edges.
  • Dither limited palettes. With 16 or 8 colors, Floyd-Steinberg or Atkinson create smooth shades; Bayer gives a retro grid.
  • Sprites stay sharp at 1:1. The pixel art preset maps one image pixel to one half block. Use "Sharp pixels" scaling.
  • Use transparency for shapes. With "Keep transparency", empty areas take the terminal's own background — great for logos.

Made with this converter

The login screen of the text adventure Midgard MUD was created with this tool. It greets every player who connects by Telnet or in the web client.

Frequently asked questions

What is ANSI art?
ANSI art is a picture made of text characters and ANSI escape codes, which set the text and background colors in a terminal. It started on 1980s and 1990s bulletin board systems (BBS) with 16 colors and block characters like █▓▒░, and is still used in the art scene, in MUDs, on servers and in command-line tools.
What is an .ans file and how do I open it?
An .ans file is a text file with ANSI escape codes. Modern files are UTF-8; classic BBS files use the DOS code page CP437 and often end with a SAUCE record holding title, author and width. Open them with cat in a terminal, with PabloDraw or Moebius — or simply drop them on this page, which shows both kinds correctly.
What is the difference between ANSI art and ASCII art?
ASCII art uses only the 95 printable ASCII characters and no colors; shading comes from how dense a character looks. ANSI art adds color codes and block characters, so each cell can show exact colors. This tool makes both: choose "ASCII" for plain text or any block style for color.
Is the converter free? Are my images uploaded?
It is free and needs no account. All processing runs locally in your browser with JavaScript and the Canvas API; no image or result is sent to a server. After the first visit it even works offline.
Which color mode should I choose?
True-Color gives the best result in modern terminals and Mudlet. 256 colors (xterm) is the safe choice for almost any terminal. 16 colors work everywhere, including BBS software and old Telnet clients. Pick "8 colors (Discord)" for Discord and "No colors" for plain text.
Which characters give the most detail?
Braille shows 2 × 4 dots per cell and gives the finest detail, but only two colors per cell. Quarter blocks show 2 × 2, half blocks 1 × 2 pixels. For photos, half blocks usually look best because every pixel keeps its exact color.
How do I post ANSI art on Discord?
Choose the Discord preset, then open the Discord tab under the preview and click "Copy for Discord". The text is wrapped in an ```ansi code block and uses only the eight colors Discord can show. A message may hold 2,000 characters; "Fit to 2,000" picks the largest width that fits.
How do I use ANSI art in a MUD?
Most MUD clients (Mudlet, TinTin++, MUSHclient, CMUD) display ANSI codes. Keep the width at 78–80 columns, use 16 or 256 colors if your players use older clients, and send each line as it is. For LDMud mudlibs, the code export "LPC" creates a ready-to-use function.
How do I convert a transparent PNG or sprite?
Open "Transparency & background" and turn on "Keep transparency". Transparent pixels then become empty cells that show the terminal background. "Clean edges" uses partial blocks like ▘▝▖▗ at the outline, and "Trim transparent borders" removes empty margins.
Can I convert animated GIFs?
Yes. Every frame is converted with the same settings and plays in the preview. Under Animation you set the speed, choose a range of frames, keep only every 2nd or 3rd frame for smaller files, play it backwards or back and forth, and decide how often it repeats. The Animation tab saves an animated GIF, a ZIP with one .ans file per frame, or a shell script that plays the animation in a terminal.
Why does a setting sometimes change nothing?
Some options only work in certain modes. Dithering and color matching need a limited palette, so they do nothing in True-Color. Shading characters only make sense with 16, 256 or 8 colors. The panel shows a short note next to every option that is currently inactive.
Which terminals show ANSI art correctly?
True-Color: Windows Terminal, iTerm2, Kitty, WezTerm, Alacritty, GNOME Terminal, Konsole and Mudlet. 256 colors: nearly all terminals. Block and Braille characters need a Unicode font such as Cascadia Mono, DejaVu Sans Mono or Menlo; the macOS Terminal app does not support True-Color.
Can I view or convert existing .ans files?
Yes. Drop an .ans, .asc, .diz or .nfo file on the page. The viewer understands UTF-8 and CP437, SAUCE records, 80-column line wrapping, cursor movement and iCE colors. You can then export it as PNG, HTML or UTF-8.
Can I animate a still picture?
Yes. Under Animation, pick an effect: “Build up like a modem” draws the picture character by character like a BBS on a slow line, “Fade in” brightens it from black, “Color cycle” turns all colors once around the color wheel, and the scroll effects move it endlessly sideways or upwards like film credits. Set the duration, then save it as an animated GIF or terminal player. Build-up and scrolling also work for loaded .ans files.
What is the difference between Basic and Pro?
Basic shows only what most people need: the styles, width, colors, brightness, contrast, saturation, animation effects and speed, and the main exports. Pro adds every other control: character sets, transparency, dithering, color matching, palettes, gamma, hue, frame range, playback direction, repeats and frame rate, CP437 with SAUCE, and the text, HTML and code exports. Settings made in Pro keep working in Basic; the panel lists them and resets them with one click. Press P to switch.

Link to ready-made settings

Every setting can be set in the address, so tutorials, forums and AI assistants can link straight to a configuration. Unknown values are ignored.

ParameterValues
presetphoto · retro · comic · pixel · minimal · discord · braille · ascii
width / rowscolumns 4–400 / max. rows (0 = no limit)
modetruecolor · xterm256 · vga256 · 16 · discord · mono
charsethalf · quarter · braille · shade · ascii
ditherfloyd · atkinson · sierra · stucki · jarvis · bayer2 · bayer4 · bayer8 · none
bri · con · sat · sharpen · hue · gammapercent values, hue in degrees, gamma 0.3–3
speed · from · to · step · loops · fpsspeed in % (25–400), first and last frame, every nth frame, repeats (0 = endless), frames per second (0 = automatic)
orderforward · reverse · pingpong
fx · secs · holdbuild · fade · hue · scrollx · scrolly · effect for still pictures, duration in seconds, pause at the end in ms
uibasic · pro · shows the simple or the full set of controls

Example: /tools/ans/?preset=discord&width=40

Crop

Keyboard shortcuts

Ctrl V
Paste image or ANSI text
Ctrl O
Open image
Ctrl S
Download .ans
Ctrl Shift C
Copy ANSI
Ctrl Z / Y
Undo / redo
+ − 0
Zoom in, out, fit
C
Compare with original
F
Full screen
Space ← →
Play/pause, step frames (animation)
P
Switch Basic / Pro
?
This overview