Clean terminal output for pasting anywhere
Terminal output is a mess of ANSI codes, box-drawing, line numbers, and soft-wraps. This tool turns it into clean text fit for an editor, a Reddit post, a Slack message, or a bug report.
What "terminal output" tends to include
- ANSI escape codes for colour, bold, cursor, and screen control.
- Unicode box-drawing from frames, progress bars, and tool-call brackets.
- Line-number prefixes from Read tools,
cat -n, and pagers. - Soft-wrapped lines hard-broken at your terminal width.
- Tool-call bullets like ●, ⏺, ⏵ from AI assistants.
- Leading indent from UI padding that becomes structural whitespace.
Common terminals this works for
The transforms are generic — they target the artefacts, not the source. Output from Warp, iTerm2, Windows Terminal, Alacritty, Kitty, Hyper, the macOS Terminal.app, and any plain TTY all clean the same way.
Common AI assistants this works for
- Claude Code — the canonical case; tool-call bullets, line numbers, leading indent.
- Cursor terminal — terminal artefacts when you copy from the integrated terminal.
- Aider — diff blocks, line numbers, frame characters.
- OpenAI Codex CLI — similar profile to Claude Code.
- Gemini CLI — markdown-rendered terminal output with soft-wraps.
For Reddit, Slack, Discord and other markdown surfaces
The default Markdown / Reddit toggle does two paragraph-level transforms: it left-trims every line (so lines with 2-3 spaces don't become inset paragraphs) and rejoins soft-wrapped paragraph lines (so sentences aren't broken mid-thought). Code fences, lists, and headings are preserved.
What stays untouched
The cleaner only modifies whitespace and known terminal artefacts. Identifiers, string contents, comments, and code structure are never rewritten. The original is preserved on the input side so you can toggle transforms and compare.