Home › Guides › Extract highlighted text

How to extract all highlighted text from a Google Doc

You read, you highlighted, and now you want just the highlights in one place. Google Docs has no button for that. Here are the three ways that actually work, fastest last.

Why Find and Replace cannot do it

Find and Replace in Google Docs matches text, not formatting. There is no option to search by highlight color, and "Select all matching text" (right-click on a highlighted word) selects text with the same text formatting, which is unreliable for background colors that sit on partial sentences. So the honest answer is: Docs itself will not give you a list.

Method 1: Copy each highlight by hand

Works for a short document. Open a second doc or a notes app side by side, then go through the doc and copy each highlighted passage. Tips that make it less painful:

Realistic limit: about 20 highlights. Beyond that you will miss some, and you will never do it a second time for the same doc.

Method 2: A small script (for the technical)

Google Docs has a built-in scripting tool called Apps Script (Extensions → Apps Script). A script can walk through every paragraph, read the background color of each run of text, and append the highlighted runs to the end of the document. It is about forty lines of JavaScript, and it needs to handle tables, list items, and highlights that start mid-sentence, or it will silently skip text. If you are comfortable in code, this is free and private. If you are not, the script editor is not a friendly place to start.

Method 3: One click with an add-on

A highlighter add-on reads the background colors for you and produces a list. Two things matter when you choose one:

With Highlight Harvest the steps are: open the sidebar (Extensions → Highlight Harvest → Open sidebar), click Harvest highlights, and the list appears grouped by color in reading order. Click Copy to paste it anywhere, or Insert at end of doc to add it as a "Highlights" section with a heading per color. Highlights you made before installing are included, and if you have named your colors, the groups carry those names.

Highlight Harvest does all of this from a sidebar in Google Docs: named highlighters, one-click apply, and a harvest button that gathers every highlight into a list grouped by color. $9 once, 14-day free trial →

Keeping the list useful