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:
- Use the document outline (View → Show outline) to jump between sections instead of scrolling.
- Paste with Cmd+Shift+V (Ctrl+Shift+V on Windows) so the highlight color does not come along.
- Type the color name before each group as you go, or you will not remember what yellow meant.
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:
- What it asks permission for. Some add-ons ask to see and edit all of your Google Docs. Look for one that only touches the current document.
- Where the list ends up. A list you can copy, or insert at the end of the same document, is more useful than one dumped into a new file you then have to find.
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
- Harvest before you share a doc for comments, so reviewers see your key points up top.
- Re-run the harvest after each reading pass. The inserted "Highlights" section carries no background color, so it never double-counts itself.
- If a passage lands in the wrong group, its highlight color is slightly off. Re-apply it with the named highlighter and harvest again.