Stop Copying Broken URLs
from AI Output

PlainText for Claude is a Windows system-tray utility that squishes multi-line, indented text from Claude or any AI assistant into a single clean, paste-ready line — no more broken URLs, commands, or file paths.

FreeOpen SourceWindows 10 / 11System Tray

The Problem

If you use Claude Code, ChatGPT, or any AI assistant in a terminal, you've hit this: the AI spits out a URL or a command, and your terminal wraps it across multiple lines with leading whitespace. You select it, copy it, paste it into a browser or another terminal — and it doesn't work. There are line breaks in the middle, spaces that shouldn't be there, and the whole thing is broken.

This is different from the formatting-stripping problem that PlainText solves. That tool removes HTML and RTF formatting from copied text. This tool fixes the structural problem — text that got split across lines and indented by a terminal emulator.

PlainText for Claude system tray menu on Windows

What It Does

PlainText for Claude monitors your clipboard. When it detects multi-line text with leading whitespace on continuation lines — the telltale sign of terminal-wrapped output — it collapses everything into a single line. Newlines are removed, leading and trailing whitespace on each line is trimmed, and the result is a single unbroken string. Paste normally with Ctrl+V.

You copy this from Claude Code's terminal output:

https://github.com/VAROIndustries/ PlainTextForClaude/releases/ tag/v1.0.0

PlainText for Claude turns it into:

https://github.com/VAROIndustries/PlainTextForClaude/releases/tag/v1.0.0

One line. No spaces. Ready to paste into a browser.

Fixes Wrapped URLs
URLs that wrap across two or three lines in a terminal come out as one unbroken link, ready for the address bar.
Commands & Paths Too
Long shell commands split at the window edge and deeply nested file paths broken mid-path are joined back into one line.
Keys, Tokens & Hashes
API keys, tokens, and hashes that got split with whitespace are collapsed into a single clean string.
Toggle From the Tray
It sits in the system tray — toggle it on and off from the tray icon. When paused, your clipboard works normally.

Install

PlainText for Claude is free and open source. It requires Python 3.10+ on Windows 10 or 11.

git clone https://github.com/VAROIndustries/PlainTextForClaude.git cd PlainTextForClaude pip install -r requirements.txt python plaintextforclaude.py

Source and documentation: github.com/VAROIndustries/PlainTextForClaude

FAQ

Why do URLs copied from a terminal break?
Terminal emulators wrap long lines at the window edge and indent the continuation lines. When you select and copy that text, the newlines and leading whitespace come with it — so the pasted URL has line breaks and spaces in the middle and doesn't work. PlainText for Claude collapses it back into a single unbroken string.
How is this different from PlainText?
PlainText removes HTML and RTF formatting from copied text. PlainText for Claude fixes a structural problem — text that got split across lines and indented by a terminal emulator. It removes the newlines, trims the leading and trailing whitespace on each line, and leaves one clean line.
Does it rewrite my clipboard all the time?
No. It only acts when it detects multi-line text with leading whitespace on continuation lines — the telltale sign of terminal-wrapped output. You can also toggle it on and off from the tray icon, and when paused your clipboard works normally.
Does it only work with Claude?
No. It's designed for the kind of output you get from AI coding assistants — Claude Code, ChatGPT, or any AI assistant in a terminal — but it joins any multi-line, indented text you copy: wrapped URLs, long shell commands, deep file paths, and API keys or tokens that got split with whitespace.
Is PlainText for Claude free?
Yes — PlainText for Claude is free and open source. It requires Python 3.10+ on Windows 10 or 11, and the full source is on GitHub.

More Free Tools