What is the ANS file format?
An .ans file is an ANSI art document - a text-based image or animation composed of IBM Code Page 437 (CP437) block and line-drawing characters combined with ANSI X3.64 escape sequences for color and cursor control. The format flourished on DOS-era bulletin board systems (BBS) from roughly 1988 to 1996 and remains an active niche art form today.
The file content is a stream of CP437 bytes and ESC[ escape sequences (defined in ANSI X3.64 / ECMA-48) controlling 16 foreground colors, 8 background colors, and cursor position. Most .ans files are 80 columns wide to match the standard DOS terminal. ANSImations use cursor-repositioning sequences to produce frame-by-frame animations within the same file.
Many .ans files include an optional 128-byte SAUCE (Standard Architecture for Universal Comment Extensions) metadata record appended at the end of the file, standardized by ACiD Productions in 1994. The SAUCE record carries the artwork title, author, group name, and creation date.
The .ans extension is closely related to .asc (plain ASCII art) and NFO files, which use similar CP437 characters without color codes. Specialized editors such as PabloDraw and Moebius create and render .ans files correctly, while modern terminals (Windows Terminal, macOS Terminal) can display them with proper CP437 font support. Archives of BBS-era ANSI art are preserved at 16colo.rs and textfiles.com.
Security & safety
RISK: LOWANS files are plain text with no executable code. Safe to open in any viewer. The only caution: some historical ANSI art contains offensive or NSFW content from the BBS scene era - review before displaying in public contexts.
Format details
in a nutshell- Ansible Playbook (YAML) - Some Ansible automation files use .ans extension but this is non-standard; .yaml/.yml is the correct extension.
- Answer File - Some software setup tools (Windows unattended setup answer files) historically used .ans - largely superseded by .xml answer files.
Programs that open ANS files
Technical details
deep spec| Character encoding | IBM Code Page 437 (CP437) - 8-bit DOS character set with block and line-drawing characters |
| Color depth | 4-bit: 16 foreground + 8 background colors (EGA/CGA palette via ANSI.SYS); iCE Color mode extends to 16 background colors |
| Escape sequence standard | ANSI X3.64 / ECMA-48: `ESC[` sequences for color selection and cursor positioning |
| Standard display width | 80 columns (standard DOS terminal width); height is unlimited |
| Typical file size | 1 KB - 100 KB |
| Metadata record | Optional 128-byte SAUCE record appended at EOF (title, author, group, date, file type info) |
| SAUCE standard | SAUCE v0.5 - specified by ACiD Productions, 1994 |
| Animation support | ANSImations use `ESC[` cursor-repositioning sequences for frame-by-frame animation |
| iCE Color extension | Background attribute bit 3 used as brightness (not blink), enabling 16 total background colors |
| File identification | No fixed magic bytes; ESC byte (0x1B) followed by `[` (0x5B) is the practical content indicator; `SAUCE` string at byte −128 from EOF when metadata record is present |
| Related formats | `.asc` (ASCII art, no color), `.nfo` (scene release info), `.rip` (RIPscrip vector terminal graphics) |
| Primary platform | DOS (ANSI.SYS driver); modern display via Windows Terminal, macOS Terminal, Linux terminal with CP437 font |
| Released | Mid-1980s (popularized on DOS BBS systems ~1988-1994) |
| Latest version | No versioning; format is frozen; SAUCE metadata record (1994) is the closest to a standard extension |
| Open standard | Yes · royalty-free |
| Specification | www.acid.org |
ANS conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about ANS files.