ansifilter
« Back to VersTracker
Description:
Strip or convert ANSI codes into HTML, (La)Tex, RTF, or BBCode
Type: Formula  |  Latest Version: 2.22@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: ansi terminal conversion html latex text-processing
Install: brew install ansifilter
About:
Ansifilter is a command-line tool designed to parse ANSI escape codes from text streams. It can strip these codes entirely or convert them into formatted output formats like HTML, LaTeX, RTF, or BBCode. This utility is essential for processing log files or terminal output to make them readable in web browsers or document processors.
Key Features:
  • Supports multiple output formats: HTML, LaTeX, RTF, BBCode, and plain text
  • Option to strip ANSI codes completely or convert them to formatting markup
  • Handles 256-color and true-color (RGB) escape sequences
  • Can process input from files, pipes, or the clipboard
  • Includes a syntax highlighting engine for source code
Use Cases:
  • Converting terminal build logs into readable HTML reports for web viewing
  • Removing color codes from CLI output before piping to files or other programs
  • Generating syntax-highlighted code snippets for documentation or presentations
Alternatives:
  • aha (ANSI HTML Adapter) – Aha is a lightweight alternative focused specifically on converting ANSI to HTML, whereas Ansifilter supports a wider range of output formats including LaTeX and RTF.
  • ansi2html – A Python script that converts ANSI to HTML; Ansifilter is a standalone C++ binary with broader format support and no runtime dependencies.
Version History
Detected Version Rev Change Commit
Sep 13, 2025 8:22am 0 VERSION_BUMP ec7ddc15
Sep 10, 2025 10:48pm 0 VERSION_BUMP 8bffca91