How to paste text without including formatting

Sometimes you don't want all the formatting and links that are included when you copy text.

pages paste match style

A few colleagues were talking in a Slack team the other day about discovering “paste without formatting” and kicking themselves for only learning about it relatively recently. I confess despite my decades of computing experience that it was just a few years ago I realized how widespread the support for such an option is!

When you copy text in many pieces of software, including text selected and copied in a browser window, OS X grabs a rich text version, which includes a variety of underlying formatting for text size, inline bold and italics, hypertext links, and other specifications.

Then, when you paste that elsewhere, you may get unexpected results or unnecessary formatting. In software that supports it, you can choose an option that lets you remove everything but the actual characters. You’ll find it spelled out in different ways in each app that lets you paste in text. In Nisus Writer Pro, it’s Edit > Paste > Paste Text Only. In OpenOffice, it’s Edit > Paste Special, and then select Unformatted Text.

In Pages and in TextEdit, the wording for this option is misleading: you have to pick Edit > Paste and Match Style. It has the same effect, however, and the pasted-in text is just styled with whatever the paragraph formatting is at the insertion point. I tested this by pasting styled text with a hyperlink and then pasting using match style, exporting the file as RTF (Rich Text Format), and examining the raw contents in BBEdit. Sure enough, Paste and Match Style stripped everything out.

mac911 google docs clear formatting

Google Docs has a subtle way to remove formatting after pasting (or on any text).

Google Docs lacks a style-free paste, but after pasting text in, you can select what you added and then click the button labeled T with a subscript x. This is the Clear Formatting option, which you can also access by pressing Command-\ (back slash) if that’s not mapped to another command for you. (For me, it’s the default for invoking 1Password.)

There’s also a round-trip option when you’re pasting into software without a paste-without-format option. I’ve been using BBEdit from Bare Bones for years to strip rich-text formatting, because it only handles text, although it includes any implicit encoding related to character sets and languages. (Bare Bones still offers its free TextWrangler software, which has the same core text-handling features, but you can also download a full version of BBEdit, which remains working forever after a 30-day full trial period with only its Web-authoring and a few advanced tools removed.)

I copy text that I either know has embedded formatting or that I suspect does, switch to BBEdit (or TextWrangler), paste and then select and copy it again, and then switch to the app I want to paste into.

The other neat part about rich text is that you can often preserve formatting, links, and other structure when you copy from a browser to a word processor or other software. I’ve used this at times to retrieve something I’ve composed in Markdown format to make use of the styled output.

Ask Mac 911

We’ve compiled a list of the most commonly asked questions we get, and the answers to them: read our super FAQ to see if you’re covered. If not, we’re always looking for new problems to solve! Email yours to including screen captures as appropriate. Mac 911 cannot reply to email with troubleshooting advice nor can we publish answers to every question.

Subscribe to the Best of Macworld Newsletter