How to clean Claude Code output: a 30-second tutorial
The fastest way to turn fragmented terminal copy-paste into clean, editor-ready code.
- 1
Copy from Claude Code
Select the snippet you want — code, log output, a tool result. Don't worry about being precise; the cleaner handles slop.
- 2
Paste into the left panel
Open the cleaner and paste into the left textarea. The right panel updates live.
- 3
Toggle transforms (optional)
By default the cleaner strips line numbers, ANSI codes, box-drawing, and trailing whitespace. Toggle off any transform that's eating something you wanted to keep.
- 4
Click copy
The 'copy' button puts the clean output on your clipboard. Paste into your editor — done.
Common scenarios
You copied a function from a Read tool result. Default settings strip the 1\t, 2\t prefixes and normalise the indentation. Done.
You copied a multi-line shell command from a terminal session. Turn on Smart unwrap to rejoin lines that were soft-wrapped at your window width.
You copied a diff and want the final code. Turn on Diff markers — it strips + and - prefixes and removes hunk headers.
You want to keep some leading indent. Turn off Indent. The cleaner won't touch your structural whitespace.
Try it now:
Open the cleaner →