macOS
brew install ansifilterlocal Homebrew formula metadata
sudo port install ansifilterMacPorts ports tree · textproc/ansifilter/Portfile · source: api.github.com
brew
Strip or convert ANSI codes into HTML, (La)Tex, RTF, or BBCode. Version 2.22 via Homebrew; verified from local package data.
install
brew install ansifilterlocal Homebrew formula metadata
sudo port install ansifilterMacPorts ports tree · textproc/ansifilter/Portfile · source: api.github.com
sudo apk add ansifilterAlpine Linux edge package indexes · ansifilter · source: dl-cdn.alpinelinux.org
sudo apt install ansifilterDebian stable package indexes · ansifilter · source: deb.debian.org
sudo dnf install ansifilterFedora Rawhide package metadata · ansifilter · source: dl.fedoraproject.org
nix profile install nixpkgs#ansifilternixpkgs package indexes · pkgs/by-name/an/ansifilter/package.nix · source: api.github.com
sudo zypper install ansifilteropenSUSE Tumbleweed package metadata · ansifilter · source: download.opensuse.org
overview
Strip or convert ANSI codes into HTML, (La)Tex, RTF, or BBCode
history
ansifilter is a small command-line converter for text containing ANSI terminal escape sequences. It can strip escape codes or interpret them into formatted output such as HTML, RTF, TeX, LaTeX, BBCode, Pango Markup, and SVG.
The official changelog starts with ansifilter 0.1 on 25 October 2007. Early releases focused on terminal color escape handling, including xterm 256-color support by 1.0 in 2008 and license migration from GPLv2 to GPLv3 in 2009.
The tool gradually expanded from a filter into a format bridge. LaTeX, TeX, BBCode, Pango, SVG, true color, OSC 8 hyperlinks, and ANSI-art formats were added over time, while the README documents a single CLI that can read stdin or files and produce multiple markup formats.
ansifilter appears in many Unix package managers because it solves a packaging-adjacent problem: converting colorized CLI output into archival or publishable text. Its changelog references contributions and fixes from distro and user communities, including Portage warning fixes, shell completion scripts, and issues from both its older GitHub tracker and current GitLab tracker.
Typical use is pipeline-oriented: pass colorized command output through ansifilter to strip ANSI escapes, or choose an output format such as --html, --latex, --rtf, --svg, or --bbcode. The README also documents --tail for following log files and ANSIFILTER_OPTIONS for default CLI options.
For package users, ansifilter is a handy companion to grep, test logs, CI logs, terminal captures, and ANSI-art files. It is deliberately not a credentials-bearing tool and has no documented default config file.
Package nerds care about ansifilter because it lives at the boundary between terminals and documentation. It turns the color and formatting conventions emitted by Unix commands into artifacts suitable for web pages, bug reports, manuals, and forums without dragging in a full terminal emulator.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
ansifilter | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
install metadata
| Package key | brew:ansifilter |
|---|---|
| Version | 2.22 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/ansifilter |
| Homepage | http://andre-simon.de/doku/ansifilter/en/ansifilter.php |
| Repository | https://gitlab.com/saalen/ansifilter |
| Upstream docs | http://andre-simon.de/doku/ansifilter/en/ansifilter.php |
| License | GPL-3.0-or-later |
| Source archive | https://gitlab.com/saalen/ansifilter/-/archive/2.22/ansifilter-2.22.tar.bz2 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ansifilter |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
ansifilter 2.21-1
parse common (terminal) ANSI codes and remove or convert them
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apt install ansifilteransifilter-gui 2.21-1
parse common (terminal) ANSI codes and remove or convert them (GUI)
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apt install ansifilter-guiansifilter
nix profile install nixpkgs#ansifilteransifilter 2.18+dfsg1-2build2
parse common (terminal) ANSI codes and remove or convert them
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apt install ansifilteransifilter-gui 2.18+dfsg1-2build2
parse common (terminal) ANSI codes and remove or convert them (GUI)
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apt install ansifilter-guiansifilter 2.22-r0
Convert text files containing ANSI terminal escape codes to a variety of output formats
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilteransifilter-bash-completion 2.22-r0
Bash completions for ansifilter
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilter-bash-completionansifilter-doc 2.22-r0
Convert text files containing ANSI terminal escape codes to a variety of output formats (documentation)
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilter-docansifilter-fish-completion 2.22-r0
Fish completions for ansifilter
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilter-fish-completionansifilter-zsh-completion 2.22-r0
Zsh completions for ansifilter
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilter-zsh-completionansifilter 2.22-4.fc45
ANSI terminal escape code converter
http://www.andre-simon.de/doku/ansifilter/ansifilter.php
sudo dnf install ansifilteransifilter-gui 2.22-4.fc45
GUI for ansifilter based on Qt6
http://www.andre-simon.de/doku/ansifilter/ansifilter.php
sudo dnf install ansifilter-guiansifilter 2.22-1.4
ANSI Terminal Escape Code Converter
sudo zypper install ansifilteransifilter-gui 2.22-1.4
ANSI Terminal Escape Code Converter - Qt GUI
sudo zypper install ansifilter-guiansifilter
sudo port install ansifiltersource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.