Skip to main content
ansicode

Every ANSI escape sequence, one URL each

A canonical reference for ANSI / VT terminal escape codes — SGR colors, cursor control, screen modes, OSC sequences. Each sequence has its own page with byte forms (\x1b[, \033[, \e[, ESC [), a spec citation, working examples in 5 languages, and a per-terminal support row.

\x1b[1;31mERROR\x1b[0m \x1b[32m✓ ok\x1b[0mERROR ✓ ok

What's inside

  • Per-sequence reference

    141 high-value sequences spanning ECMA-48, xterm-ctlseqs, DEC private modes, sixel graphics, and the Kitty graphics protocol. One stable URL per code.

  • Live decoder

    Paste any escape-laden string. We tokenize every byte and render the result side by side.

  • Terminal support matrix

    15 features × 14 terminals (12 emulators + tmux + GNU screen) — see at a glance which escape sequence is safe for your target environment.

Tools & references

Beyond the per-sequence pages — short, focused references for everything you'd google around ANSI escape codes.

Browse by family

Every sequence on the site belongs to one of seven wire-protocol families. The family pages list every sequence in that family on one URL — handy when you know the family shape (SGR, CSI, OSC …) but not the specific code.

Popular sequences

The 30 escape sequences developers look up most — every SGR colour and attribute, the CSI cursor and erase family, the alt-screen / cursor-visibility DEC modes, and the OSC 8 hyperlink protocol. The remaining 111 sequences live in the full index.