什么是 Claude Code 文本格式化器?
Claude Code 文本格式化器是一个专门用于清理 Claude Code 和终端输出文本的工具。当您从终端复制输出时,通常会包含 ANSI 转义码、行号和各种控制字符,这些在粘贴到文本编辑器时会显示为乱码。这个工具可以自动清理这些内容,提供干净的纯文本输出。
Everything runs locally in your browser. Your input never leaves your device, so the tool is safe for cleaning output that contains sensitive information.
如何使用
将包含 ANSI 代码或行号的文本粘贴到输入框,工具会自动清理并显示干净的文本。您可以复制清理后的文本用于文档、代码注释或其他用途。
- 粘贴终端输出到输入框
- 工具自动移除 ANSI 转义码
- 移除行号前缀
- 清理控制字符
- 复制干净的文本
常见用例
这个工具特别适合处理 Claude Code 的输出、终端命令结果、日志文件内容等需要清理格式的场景。
Line numbers added by terminal multiplexers and log viewers also create extra noise. The formatter removes all of this automatically.
Typical Use Cases
- Cleaning Claude Code session logs before sharing them in bug reports.
- Copying terminal output into tickets, docs, or chat messages without escape-code noise.
- Preparing log snippets for code reviews and documentation.
- Removing line numbers from code listings so they can be pasted back into editors.
Tips
- If a pasted block still looks odd, try toggling Strip Control to remove hidden characters.
- The tool handles output from most modern terminals, including iTerm, Windows Terminal, and VS Code's integrated terminal.
- There is no limit on input size, so you can clean very long logs in one pass.