Browser-based · PDF markup → notes

PDF Annotations Export

Pull the highlights, underlines, sticky notes, text boxes, ink drawings and stamps out of a PDF. Each highlight comes with the words under it, plus its page, author, date and colour, ready as Markdown, CSV or JSON.

PDF

One PDF at a time, up to 50 MB and 2,000 pages.

Drop a marked-up PDF here or click to choose

.pdf

Annotations

They appear here after the PDF is read.

Export PDF Highlights and Comments

Operator: Abdulla Al Fahad. How tools are built and checked

When you read a paper or a contract with a highlighter, the marks live in the PDF as annotations, and getting them out usually means scrolling the file again. This tool lists them: every highlight with the words it covers, plus underlines, strikeouts, sticky notes, text boxes, ink drawings and stamps, each with its page, author, date and colour.

Only what was marked is exported, nothing around it. The result can be copied as Markdown notes, or saved as CSV or JSON for a spreadsheet or a note-taking app.

Key features

  • Highlighted text recovered from the page's text layer using the highlight's own coordinates
  • Underline, strikeout, squiggly, sticky note, text box, ink, stamp and reply annotations
  • Author, created and modified dates and colour for every entry
  • Group the Markdown by page or by colour; filter by annotation type
  • Copy as Markdown, or download .md, .csv or .json
  • A notice when highlights sit on pages without a text layer

Which annotation types are read, and how the highlighted text is found

PDF stores a highlight as a coloured rectangle, or several, described by 'quad points' in page coordinates; it does not store the words. To recover them the tool reads the page's text layer with pdf.js and keeps the text pieces that fall inside each quad, in reading order. That works for any PDF that has a text layer. On a scan without one, the highlight is listed with empty text, and the tool says how many such marks there were.

The annotation types read are Highlight, Underline, StrikeOut and Squiggly (with text), Text (the sticky note), FreeText, Ink, Stamp and replies; other types are listed as Other. Link annotations and form fields are not included. A comment attached to a highlight, taken from its Contents entry, is shown beside the text, and ink is described as a number of strokes.

Colours are read from the annotation as RGB and shown as a hex value and a plain name (Yellow, Green, Pink, Blue, Orange, Red, Purple, Cyan, Grey and so on), worked out from hue, saturation and lightness so slightly different yellows from different apps group together. Dates in the PDF form D:20250315102030+01'00' are converted to ISO UTC such as 2025-03-15T09:20:30Z; the table shows the modified date, or the created date if there is none.

A run reads up to 2,000 pages and 20,000 annotations from a file of up to 50 MB. Markdown output groups entries under a heading per page, or per colour (largest group first), with highlights as block quotes and any comment beneath. CSV has one row per annotation with ten columns; JSON has the same fields under an annotations array with the file name and a count.

How it works

For each page the tool asks pdf.js for its annotations and its text content. A text-markup annotation's quads are turned into one rectangle per quad and read top to bottom, left to right, whichever order the viewer wrote them in. Every text piece that overlaps a rectangle on the same line is collected; when the rectangle covers only part of a piece, the piece is cut by character position in proportion to the overlap, so the ends can be one character off in proportional fonts.

The annotations are then sorted by page, then top to bottom, then left to right, so the Markdown follows the order you would read the page. Colour names are assigned after the sort so grouping by colour keeps that order inside each group.

Common use cases

  • Turning the yellow highlights of a paper into a quote list for a literature review
  • Collecting reviewers' sticky notes and comments on a contract into one table
  • Separating green 'to cite' highlights from yellow 'to read' ones by grouping on colour
  • Moving highlights from a book chapter into a Markdown note-taking app
  • Counting how many comments each author left on a draft, using the CSV

How to use this tool

  1. Choose the PDF.
  2. Wait for the page-by-page scan; the table fills when it finishes.
  3. Untick any annotation types you do not want.
  4. Choose to group the Markdown by page or by colour, and whether to include author, date and colour.
  5. Check the table and the Markdown preview.
  6. Copy the Markdown, or download the .md, .csv or .json file.

Example

A 12-page paper with four yellow highlights and one green highlight with a comment, grouped by colour

Yellow: p.2 'the sample was drawn at random', p.4 'effect size of 0.31', p.4 'we did not adjust for age', p.9 'future work'
Green:  p.5 'see Table 3' with comment 'cite this'

Markdown

# Annotations from paper

## Yellow

> the sample was drawn at random
>
> *page 2, Dana Lee, 2026-05-02*

(three more yellow quotes...)

## Green

> see Table 3
>
> **Note:** cite this

Tips for best results

  • Use colour as a code when you read (yellow for claims, green for citations); grouping by colour then gives you sorted lists for free.
  • Switch off author and date in the Markdown for notes you will share, and keep them in the CSV for your own records.
  • Filter to Text (sticky notes) when you only want a review's comments and none of the highlighted quotes.

Common pitfalls

Underlines and strikeouts are listed with the text they mark, but the tool cannot tell whether a strikeout means 'delete' or 'wrong'.

A PDF viewer that stores highlights as page drawing rather than annotations leaves nothing to list.

The author field is whatever the viewer wrote, often a username, and can be empty.

Text boxes (FreeText) have their text in the comment field; the tool shows it there, not in the text column.

Ink drawings are listed by number of strokes only; their shape is not exported.

Common errors and how to fix them

Highlights are listed with no text
The page is a scan with no text layer. Run Make PDF Searchable first, then export again.
No annotations were found
The marks may have been flattened when the PDF was printed or saved, which turns them into page drawing. Annotations that are still separate objects are the only ones that can be listed.
The words under a highlight are slightly off
A highlight that ends inside a word is cut by character position, which can be one character off, and an overlapping box can catch neighbouring text. Quote from the PDF itself when exact wording matters.

Best practices

  • Check a couple of highlights against the page, especially across columns, where reading order is hardest.

From rectangles to words

A highlight is a picture of a marker pen, not a selection. Two viewers can highlight the same sentence and store different rectangles. Matching those rectangles against the text layer by overlap, requiring a piece to share most of a line's height with the rectangle, is a robust way to read them back, though the first and last characters can be a letter off when a rectangle ends inside a word.

Multi-line highlights are stored as one quad per line. They are read line by line and joined with spaces, so a sentence across two lines comes out as one quote.

Frequently asked questions

Does it work on highlights made in Preview, Acrobat or a browser?

Yes when the viewer saved them as standard PDF annotations, which Preview, Acrobat and most readers do. Marks made by a tool that burns them into the page cannot be listed.

What does the colour name mean?

It is the nearest plain colour word to the annotation's RGB value, used so that slightly different shades group together. The exact hex value is kept in the CSV and JSON.