Barokit

🌈ANSI Color Code → HTML

Convert ANSI terminal escape sequences to HTML so you can display terminal colors on web pages, blogs, and docs. Useful for sharing CI/CD logs, replacing screenshots, and showing colored command output in tech posts.

🔒 Browser-basedNo watermarkNo signup

How to use

  1. 1Paste text with ANSI escape sequences.
  2. 2Get HTML output.
  3. 3Drop it into your blog or doc to show colors.

FAQ

Which codes are supported?+

Basic 16 colors, 256-color palette, and 24-bit RGB (true color). Text attributes like bold, italic, and underline are handled too.

What is ANSI?+

A standard for terminal colors and styling via escape codes (\033[31m etc.). Common in Linux/macOS terminals, git output, and CI logs.

Which command outputs work well?+

git status, npm output, jest results, ls --color, eslint/typescript errors — anything with colored output.

How do I capture colored output from the terminal?+

On Linux/macOS run `command 2>&1 | tee output.txt`, then open the file and copy. Color codes are preserved.

The HTML output is huge. Can I shrink it?+

ANSI metadata gets embedded per character, inflating the HTML. Trim to only the section you need before converting.

Related tools