Free · Client-side · No signup

Remove Claude Code whitespace in one paste.

Paste fragmented terminal output, get clean paste-ready text — for code editors, Reddit, Discord, Slack, anywhere.

Pasteinput
Cleanoutput
Your cleaned output will appear here.

What is Claude Code whitespace, and why does it ruin your paste?

Claude Code is Anthropic's terminal-based coding assistant. It's wonderful to work with, but its output is rendered for a terminal — meaning every snippet you copy comes wrapped in line-number prefixes, ANSI colour codes, Unicode box-drawing characters, tool-call bullet markers, and a leading indent of UI padding. None of that belongs in your editor, your Reddit post, or your Slack message.

The whitespace problem is the worst of it. When Claude Code displays a file via the Read tool, it prefixes every line with a tab and a line number — 1\t, 2\t, and so on. Tool-call frames add a 2 to 4 space leading indent. Soft-wrap from your terminal width injects hard line breaks mid-sentence. By the time you paste it into VS Code or a markdown surface like Reddit, your code is broken and your prose is fragmented.

Why a quick find-and-replace doesn't work

You can hand-craft a regex to strip line numbers. You can bulk-delete ANSI codes if you remember the escape sequence. But the moment you have a paragraph that's been soft-wrapped at column 80 mixed in with code blocks that need their indentation preserved, regex becomes a minefield. This tool runs ten different transforms — each toggleable — so you don't have to think about edge cases.

What this cleaner actually does

By default it strips line-number prefixes (both tab- and pipe-delimited), removes ANSI escape sequences, deletes Unicode box-drawing characters, clears tool-call bullet markers (●, ⏺, ⏵), trims trailing whitespace, normalises indentation, and runs a Markdown / Reddit pass that left-trims every line and rejoins soft-wrapped paragraphs while preserving code fences, lists, and headings. The result is text that pastes cleanly into any editor or markdown surface.

Where this tool helps

  • Pasting Claude Code output into VS Code, Cursor, Sublime, JetBrains — strips the line numbers and leading indent.
  • Pasting into Reddit, Discord, Slack — fixes soft-wrap line breaks and 2-space indents that break markdown.
  • Quoting Claude Code in a blog post or PR description — clean prose, no terminal artefacts.
  • Bug reports and Stack Overflow answers — paste the tool output without the noise.

Privacy: nothing leaves your browser

Every transform runs locally as JavaScript. Open DevTools, watch the Network tab, paste a snippet — you'll see no outbound requests for your content. That matters when you're cleaning code that contains tokens, internal hostnames, or anything proprietary. There is no account, no quota, no log of what you paste.

Other terminal output it cleans

The same transforms apply to output from any terminal-rendered AI assistant: stripping ANSI escape codes, removing line numbers, cleaning terminal output, and fixing Claude Code copy-paste issues all work on output from Cursor, Aider, Codex CLI, Gemini CLI, Warp, and traditional shells.

How it works

Why does Claude Code output paste so messy?

Terminal-rendered output is meant for the eye, not the clipboard. When you copy it into a regular editor, you drag along all the visual scaffolding that made it readable on screen.

01

Line number prefixes

The cat -n format used by Read produces 1\t, 2\t, ... at the start of every line.

02

ANSI & box-drawing

Tool call frames, syntax-highlight escapes, and Unicode borders end up in your paste.

03

Excess indentation

UI padding leaks into the leading whitespace of every line, breaking your code structure.

Before
   1	●  function greetUser(name) {
   2	│    console.log(`Hello, ${name}!`);
   3	│  }
   ┌─ Done in 0.3s
After
function greetUser(name) {
  console.log(`Hello, ${name}!`);
}
Built for the paste

Every kind of noise. Every kind of clean.

Line numbers

Strips Read tool prefixes, gutter numbers, and tab-indexed line markers.

ANSI escape codes

Removes color codes from any terminal session — bash, zsh, pwsh, fish.

Box drawing

Cleans Unicode borders, arrows, and frame characters from tool output.

Tool bullets

Strips ●, ○, ⏺ markers Claude Code uses to denote tool calls.

Indentation

Detects and removes the common leading indent that UI padding adds.

Diff markers

Optional: strip + and - prefixes to recover plain code from a patch.

Smart unwrap

Optional: rejoin paragraphs that got soft-wrapped by your terminal.

Blank lines

Collapses runs of empty lines into a single break.

Local processing

Runs entirely in your browser. Your code never touches our servers.

FAQ

Common questions

Is my code sent to a server?+

No. Cleaning runs entirely in your browser via JavaScript. Nothing leaves your device — you can verify with DevTools.

Does it work with output from other AI assistants?+

Yes. The same patterns apply to terminal output from any tool — ChatGPT code blocks pasted from Terminal, Cursor, Aider, OpenAI Codex CLI, Gemini CLI, and traditional CLI tools.

Will it break my code?+

The cleaner only touches whitespace and known terminal artifacts. Toggle off any transform you don't want. The original input is preserved on the left so you can compare.

Can I use it on the command line?+

You can pipe text through your clipboard using OS tools. A CLI version is on the roadmap — open an issue on GitHub to vote.

Is there a character limit?+

No hard limit. The tool processes hundreds of thousands of characters without breaking a sweat because it runs locally.