PlainText for Claude: Stop Copying
Broken URLs from AI Output

June 21, 2026  ·  VARØ Industries
← Back to Blog

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.

Just want the download? The PlainText for Claude tool page has the features, install steps, and FAQ in one place.

PlainText for Claude is a Windows system-tray utility that squishes multi-line, indented text into a single clean line, ready to paste.

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.

It's specifically designed for the kind of output you get from AI coding assistants:

How to Use It

Run it. It sits in the system tray. Copy text from your terminal. If the text spans multiple lines with indentation, PlainText for Claude automatically joins it into one line. Paste normally with Ctrl+V. That's it.

You can toggle it on and off from the tray icon. When paused, your clipboard works normally.

Example

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.

Get PlainText for Claude

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

Install

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

Run

python plaintextforclaude.py

GitHub: VAROIndustries/PlainTextForClaude


Check out more free tools and apps at varo.industries/apps.

Frequently Asked Questions

Why does a URL copied out of a terminal paste with line breaks in it?
The terminal wrapped it at the window edge and indented the continuation lines for display. Those line breaks and leading spaces are real characters as far as the copy is concerned, so what lands on your clipboard is a broken multi-line string rather than the single URL you selected.
What exactly does PlainText for Claude change?
It removes the newlines, trims the leading and trailing whitespace from each line, and joins what is left into one unbroken string. Nothing else about the text is touched.
What kind of terminal output does it fix?
The things AI coding assistants emit that most often get wrapped: URLs split across two or three lines, long shell commands broken at the window edge, deeply nested file paths snapped mid-path, and API keys, tokens and hashes split with whitespace.
Will it mangle text that wasn’t wrapped by a terminal?
It only acts on multi-line text that has leading whitespace on its continuation lines — the signature of terminal wrapping. Ordinary single-line copies pass through untouched.
Can I turn it off temporarily?
Yes. Toggle it from the tray icon and your clipboard behaves normally again while it is paused, then toggle it back on when you are copying from the terminal.
What does PlainText for Claude need to run?
Python 3.10 or newer on Windows 10 or 11. Clone the repo, pip install the requirements, and run plaintextforclaude.py — it drops straight into the system tray.

Sources & References

  1. PlainText for Claude
  2. PlainText: Stop Pasting Formatting You Didn't Want — VARØ Industries Blog
  3. ClaudeTray: A Battery Meter for Your Claude Code Rate Limits — VARØ Industries Blog
  4. EnvForge: A Better Way to Manage Windows Environment Variables — VARØ Industries Blog
  5. KillSwitch: Kill Every Messaging, Video, VPN, and Social App in One Click — VARØ Industries Blog