About ansicode
ansicode is a canonical, per-sequence reference for ANSI / VT terminal escape codes. Every documented sequence lives at its own stable URL, with byte forms in every common encoding (\x1b[, \033[, \e[, ESC [, hex), a citation to the underlying standard, runnable examples in five languages, and a per-terminal support row.
At a glance
- Sequences
- 141
- Families
- 7
- Terminals matrixed
- 14
- Language helpers
- 30
- Site languages
- 2
Scope
The site covers SGR (color and text attributes), CSI cursor and erase sequences, DEC private modes (alt screen, cursor visibility, mouse, focus events), and OSC control sequences (window title, hyperlinks). All data ships in the repository as static JSON-shaped TypeScript; the decoder runs entirely client-side.
Sources
Facts come from ECMA-48 (5th edition, 1991 — the standard published in 1976 and stable since), the xterm Control Sequences reference (xterm-ctlseqs), the DEC STD 070 / VT-series technical manuals, and the documentation of individual modern terminal emulators (kitty, iTerm2, Windows Terminal, ghostty, alacritty, wezterm). Each sequence page cites the section of the standard it originates from.
How to use
Pick a sequence from the homepage index, search for the literal byte form (\x1b[2J, \e[31m, ESC [ ? 1049 h …) in your search engine, or paste an escape-laden string into the decoder to see it tokenized and rendered. The terminal support matrix tells you which features are safe to emit in your target environment.
Contact
Spotted an error or missing sequence? Email [email protected].