DataPurge.dev

Strip ANSI Escape & Color Codes from Terminal Logs

Clean unreadable [31m, [0m, and cursor escape sequences from CI/CD, Docker, and CLI outputs into crisp plain text.

Zero tracking • Runs entirely in your browser
Raw / Dirty Input
192 chars•3 lines•194 B
Sanitized OutputClean Text
133 chars•3 lines•135 B(-30%)
Fixes applied:
✓ 12 terminal ANSI codes stripped
Live Telemetry & DiagnosticsLive
Sanitizer & Repair
Data Processed
194 B
192 chars
Errors Fixed
12
Syntax & hidden chars
Size Optimization
-30%
59 B saved
Processing Time
< 1 ms
Local engine
Privacy Score
100 / 100
Zero data leaves browser

How to Strip ANSI Color and Escape Codes from CLI & CI/CD Logs

Modern CLI tools, Docker containers, Jest test runners, and GitHub Actions pipelines emit ANSI escape sequences to colorize terminal output. When redirected to a file or copied into a text editor, those colors turn into noisy garbage like [31m and [39m.

Why does this problem happen?

Terminals interpret ESC (\x1b or \u001b) sequences as foreground colors, bold text, or cursor movements. Plain text editors, Markdown documents, and log search tools display the raw bracketed codes instead.

Those stray escape sequences break regex searches, bloat ticket descriptions, and confuse LLM context windows when debugging build failures.

How to solve it?

Paste your raw terminal or CI output into the editor above. DataPurge strips all ANSI SGR color codes, cursor sequences, and trailing whitespace while preserving your actual log lines and timestamps.

Copy or download the clean plain-text log in one click.

Why use 100% Client-Side (Zero-Telemetry)?

CI/CD and build logs frequently expose internal package names, repository paths, and environment metadata.

DataPurge processes every byte locally in your browser with zero server uploads or telemetry.

No Compiler CrashesStrips zero-width spaces (\u200B) and curly quotes copied from Notion, Slack, or ChatGPT that secretly break your code.
100% In-Browser PrivacyNo API calls, no backend, no analytics trackers. Your proprietary code and tokens never touch any server.
Multi-Format EngineEffortlessly switch between JSON, YAML, XML, and CSV with automatic structure detection and clean syntax formatting.

Specialized Developer Utilities & Guides

All-in-One Sanitizer