How to use ANSI HTML
- 1. Paste a terminal log. ESC [ 32 m style codes.
- 2. Copy HTML. A <pre> wrap is included.
- 3. Preview below. Basic 16-color map plus bold.
- 4. No TTY. Cursor movement is ignored.
About this tool
CI logs are full of ANSI. This converter maps a small set of SGR codes to HTML colors so you can paste a readable snippet into a doc. It is not a full terminal emulator.
Supported
Foreground 30–37, 90, reset, and bold. Truecolor and 256-color are skipped.
XSS
Input is escaped before spans are added.
Code examples
ANSI
\u001b[32mOK\u001b[0m