ANSI Escape Code Stripper & Parser
Guia
ANSI Escape Code Stripper & Parser
Strip or render ANSI escape codes from terminal output. Paste colored terminal text and either remove all escape sequences for clean plain text (strip mode) or preview the styled output with colors as it would appear in a terminal (render mode). Supports 8-color, 256-color, and 24-bit true-color ANSI sequences.
Como usar
Paste your ANSI-colored terminal output into the input area, or load a sample (colorful ls output, git diff, build log, or neofetch-style display). Choose Strip mode to remove all escape sequences and get clean text, or Render mode to see the colored output as styled HTML. The sequence analysis section shows every escape code found with its position, raw representation, and decoded meaning. Use the SGR reference to look up specific codes.
Características
- Strip Mode — Remove all ANSI escape sequences from terminal output to get clean, plain text. Shows statistics: characters removed, sequences found, and clean text length. Copy or download as .txt file.
- Render Mode — Convert ANSI codes to styled HTML/CSS and preview colored output with a terminal-like dark background. Supports bold, italic, underline, strikethrough, and all color modes. Copy as HTML or download.
- Full Color Support — Handles standard 8-color (30-37), bright colors (90-97), 256-color palette (38;5;n), and 24-bit true-color (38;2;r;g;b) for both foreground and background.
- Sequence Analysis — Detailed table of every ANSI escape sequence found: byte position, raw escaped representation, decoded meaning, and SGR parameters. Summary counts by type.
- Input Auto-Detection — Handles both actual ESC bytes (0x1b) from terminal paste and text representations like \033[31m or \x1b[31m from source code.
- Sample Content — Built-in examples: colorful ls file listings, git diff with red/green, build logs with warnings/errors, and neofetch-style ASCII art system info.
- SGR Code Reference — Comprehensive table of Select Graphic Rendition codes: reset, bold, italic, underline, strikethrough, all foreground/background color codes, 256-color and true-color syntax.
ANSI Escape Codes
ANSI escape codes are special byte sequences that control text formatting in terminal emulators. They start with the ESC character (0x1b or \033) followed by a bracket and parameter codes. The most common are SGR (Select Graphic Rendition) codes ending in ‘m’ that control colors and text styles. These codes are embedded in output from tools like ls, git, grep, build systems, and test runners to provide colored terminal output. When this output is copied or logged, the escape codes become visible as garbled text — this tool strips or renders them.
What are ANSI escape codes?
Why do I see garbled characters in my terminal output?
What is the difference between 8-color, 256-color, and true-color?
Is my terminal output sent to a server?
Instale nossas extensões
Adicione ferramentas de IO ao seu navegador favorito para acesso instantâneo e pesquisa mais rápida
恵 O placar chegou!
Placar é uma forma divertida de acompanhar seus jogos, todos os dados são armazenados em seu navegador. Mais recursos serão lançados em breve!
Ferramentas essenciais
Ver tudo Novas chegadas
Ver tudoAtualizar: Nosso ferramenta mais recente was added on Abr 14, 2026
