How it works (and what it doesn't handle)
Claude Code wraps its terminal output to ~120 columns and prepends a 2-space indent on every line. Pasted into a normal text field, that becomes a hard-wrapped block of broken paragraphs — and naive cleanup tools also collapse list items into one line.
This tool:
- Removes a single leading 2-space indent from each line.
- Joins consecutive paragraph lines into one logical paragraph.
- Detects bulleted (
- , * , • ) and numbered (1. ) lists, keeps each item on its own line, and re-joins their wrap-around continuation lines back onto the item.
- Collapses runs of blank lines to a single blank line and trims leading/trailing blanks.
- Detects pasted code (Python, JS, shell, etc.) and switches to Code mode, which preserves line breaks and indentation instead of reflowing. Toggle the button manually to override.
It does not attempt to handle tables or nested lists with mixed indentation — those are passed through best-effort and may need manual fix-up.
Everything runs locally in this page; nothing is sent anywhere.
Inspired by Simon Willison's Cleanup Claude Code Paste.