Paste messy text from your terminal or Claude Code and get clean, plain output. Strips ANSI color codes, line-number gutters, and invisible control characters. Runs 100% in your browser.
Everything runs in your browser — your text is never uploaded or stored.
Clean up terminal and Claude Code output
Copying text out of a terminal often brings along invisible junk — ANSI color codes, cursor-control characters, and line-number gutters that break the moment you paste them into a document, a ticket, or an AI prompt. This tool removes all of it and gives you clean plain text. Paste your text below, pick what to clean, and copy the result.
Frequently Asked Questions
What does the Claude Code Text Formatter do?+
It cleans up raw text copied from a terminal or from Claude Code's output. It strips ANSI color/escape codes, removes line-number gutters (like the '123→' prefixes from file reads), deletes invisible control and zero-width characters, optionally removes box-drawing characters from tables, normalizes line endings, and trims trailing whitespace. The result is clean, plain text you can paste anywhere.
Is my text uploaded to a server?+
No. Everything runs entirely in your browser using JavaScript. Your text never leaves your device, nothing is stored, and no network request is made. It works offline once the page has loaded.
What are ANSI escape codes?+
ANSI escape codes are invisible sequences (starting with the ESC character, often shown as \x1b or ^[) that terminals use to add color, bold text, and cursor movement. When you copy colored terminal output into a plain document, these codes can come along as garbage like '[0;32m'. This tool removes them.
Why does text copied from Claude Code have numbers at the start of each line?+
When Claude Code reads a file, it shows line numbers in a 'cat -n' style — a number followed by a tab or an arrow (→) before each line of content. Those gutters are great for reading but break the code if you paste it back into an editor. The 'Remove line-number gutters' option strips them so you get the original content back.
Will it remove indentation from my code?+
No. It only removes leading line-number gutters and trailing whitespace at the end of lines. Meaningful leading indentation (spaces and tabs that are part of your code) is preserved, so formatting stays intact.
What does 'Strip box-drawing characters' do?+
Terminal tables and tree views use characters like ─, │, ┌, and └ to draw borders. If you only want the text content from a table, enabling this option removes those drawing characters. It is off by default because sometimes you want to keep the table layout.