Skip to Content
Back to Pure Paste

Updated

How to Remove Invisible Characters from ChatGPT Text on Mac

By Sindre Sorhus, who makes the Pure Paste app

Text from AI chatbots, like ChatGPT and Claude, can have invisible characters. Text from web pages and PDF documents can have them too. You cannot see them, but they can break the text in other apps.

With Pure Paste

  1. Open Pure Paste. Its icon is in the menu bar.
  2. Click the icon, choose “Settings…”, and click “Extras”.
  3. In “When clearing formatting”, turn on “Remove invisible characters”.
  4. Copy the text, and paste it. Pure Paste removed the invisible characters when you copied the text.

Pure Paste removes zero-width spaces and joiners, direction marks, line and paragraph separators, and control characters that cause problems. It keeps accents (like “café”), normal spaces, tabs, and new lines. An emoji that is made of more than one emoji, like 👨‍👩‍👧, becomes separate emoji, as the joiner between them is an invisible character too.

Pure Paste cleans text only while “Automatically clear formatting” is on (it is on by default), and not in the apps in the “Exclude” settings. How to paste without formatting.

Get Pure Paste

Paste as plain text by default

Download on the App Store

$4, one-time purchase

Platform
macOS
Requires
macOS 26 or later
Category
Utilities
Released
March 2022
Family Sharing
Yes
Updated
September 2026
Version
1.14.6
Size
5 MB

More about Pure Paste

Without an app

To clean the text on the clipboard one time, copy the text, and run this command in the Terminal app:

console
pbpaste | perl -CSD -pe 's/[\x{200B}-\x{200D}\x{2060}\x{FEFF}]//g' | pbcopy

It removes the zero-width spaces and joiners, and puts the clean text back on the clipboard as plain text. Then paste it.

This is good for one text. Pure Paste does it for each text that you copy, and it removes more types of invisible characters.