No file open

Tools

Extract bookmarks from a PDF

or drop a file anywhere here

Dropbox
Google Drive
OneDrive
Box

Files other than PDF are converted first. Signing in raises the size limit.

You add
One PDF
You set
Nothing to set
You get
The bookmark list, on screen

Bookmarks are the outline a PDF reader shows beside the pages. Sometimes you want that outline as a list you can paste into a document or an email, or as data a script can read. This page opens the Bookmarks panel in the editor. It lists every bookmark the file has, with a count, nested the way the file nests them, each with its page number. Copy as text puts an indented list on your clipboard, with the page number in parentheses after each title. Download the list gives you a JSON file. The two buttons appear when the file has at least one bookmark. The panel is also where you edit the bookmarks, but you can just read and copy. It is for anyone who has a PDF that already has bookmarks and wants them out as text or JSON. It does not make bookmarks from headings, and it does not read links or positions on the page. The figures below come from our own run on this page with a sample we made.

Own 8-page sample with 8 bookmarks on 3 levels, made by indox, no third-party content

Sample PDF8 pages, 8 bookmarks, 3 levels; panel read it in 4.2 s
6,714 B
Its JSON8 nodes, 3 levels, titles and pages equal to the file; copied text 8 lines
711 B
Merged PDFmade by indox Merge PDF, 11 pages; panel read it in 4.8 s, 11 of 11 pages correct
9,993 B
Its JSON11 nodes, all at one level
797 B
Measured on indox.org on 5 November 2026, signed out and without paying: the bytes of our sample, its JSON, a merged file and that file's JSON. The tool changes no page, so there is no before and after picture.

What can you do when you extract bookmarks?

See the whole outline

Every bookmark is listed with a count above it, indented under its parent, with its page number.

Copy as text

Copy as text puts an indented list on your clipboard, one bookmark per line, with the page in parentheses, such as Chapter 1 (3). The button then says Copied.

Download the list

Download the list saves a JSON file of the bookmarks the file has, named after your PDF with -contents.json added. Use it when a program, not a person, will read the list. Edits you make on screen are not in this file.

Fix it before you copy

The rows are editable. Copy as text copies the list as it stands on screen, so corrections you make are in the copy.

What extracting bookmarks keeps and changes

Stays the same

  • The whole file: pages, text, images and fields.
  • The bookmarks themselves, including titles in Persian script in our test.
  • The file you have on your device.

Changes

  • Nothing, unless you edit a row and press Save bookmarks.
  • Copy as text puts a list on your clipboard, with your on-screen edits.
  • Download the list saves a JSON file without your on-screen edits.

Which indox page for a PDF's outline

You want toUseWhat we saw
Read the outline as text or JSONExtract bookmarks (this page)8 bookmarks listed in 4.2 s in our test, all pages correct
Add, rename or move bookmarksEdit Table of ContentsThe same panel, with editable rows
Join PDFs and keep their outlinesMerge PDFIn our test the merged file kept every bookmark and page but at one level

How to extract bookmarks from a PDF in 3 steps

  1. Open your PDF

    Add the PDF in the upload area. The editor sends it to indox's server, which reads the outline. In our test there was no run button to press: the Bookmarks panel listed the bookmarks with a count once the file was read.

  2. Read the list

    Check the titles, the nesting and the page numbers.

  3. Copy or download

    Press Copy as text for an indented list, or Download the list for a JSON file.

Screenshot of the Extract Bookmarks panel listing bookmarks with their pages, including Persian titles, after Copy as text

Why extract bookmarks with indox?

Getting a bookmark list out of a PDF usually means opening a desktop editor and retyping it. Here the outline is on screen the moment the file is open, and one button copies it as plain indented text. It is the same panel you use to edit bookmarks, so a wrong title can be fixed before you copy it. It lists bookmarks only, with their pages, and does not read headings from the text. In our test, titles written in Persian script came out in the copied text and in the JSON exactly as they were in the file.

  • The whole outline on screen, with a count
  • One-click copy as indented text
  • A JSON file when you need one
  • The file is never changed by reading
  • Edit and copy in the same panel
The indox Extract Bookmarks page with the editor open: an upload area and the Bookmarks panel beside it

What are the limits when you extract bookmarks?

File size
Not signed in, the PDF can be up to 200 MB, within a daily free allowance. A signed-in account can upload up to 200 MB per file.
Where it runs
The editor sends the PDF to indox's server as soon as it opens, because the outline is read there; Copy as text and Download the list work from that reading. If you are not signed in, the upload and its results are deleted 24 hours after the job finishes. A signed-in account keeps them in its history until you delete them, for at most 180 days, or for 24 hours or 30 days if you choose that. Either way indox keeps a record of the job, such as the file name and its status, but not the file.

Limits worth knowing

  • The copy and download buttons appear only when the file has at least one bookmark.
  • Copy as text lists titles and page numbers. It does not include links or positions on the page.
  • Download the list gives the bookmarks as JSON, not as CSV or Word.
  • Only existing bookmarks are listed. Headings in the text are not turned into bookmarks.
  • The panel handles the file open in the editor, one at a time.
  • The JSON file is the file's own list. If you edit a row on screen, the copied text has the edit and the JSON does not.
  • If a bookmark has no page the tool can resolve, it is shown as page 1. Our test did not check named destinations, bookmarks that point at a deleted page, or outlines longer than our 8-bookmark sample.
  • A file produced by the indox Merge PDF page showed all its bookmarks at one level in our test, so the copy has no indentation for it. The nesting was already gone from the merged file.

When the list is not what you expected

What you seeWhyWhat to do
There are no copy or download buttonsThe file has no bookmarksThe panel says so. Add some in the same panel if you want them.
I cannot see page numbers in the copied listPage numbers are in parentheses after each titleLook for the number in parentheses at the end of each line.
The downloaded file is JSON, not textDownload the list gives JSONUse Copy as text if you want a plain indented list.
The copy shows my edits, not the file's listCopy as text copies what is on screenReopen the file for the untouched list, or save your edits with Save bookmarks.
The JSON does not have my editsDownload the list holds the bookmarks as the file has themUse Copy as text for the edited list, or save the edits and extract again.
A merged file shows every bookmark at one levelIn our test the Merge PDF page wrote the bookmarks flat, so the file had no nesting to readRebuild the nesting in Edit Table of Contents, or extract from the source files before merging.
A bookmark shows page 1 and that looks wrongA bookmark whose page cannot be resolved is shown as page 1Check the entry in Edit Table of Contents and set its page.

What do the free and paid plans add?

Free

  • All converters
  • Daily credit refresh
  • Email support

Basic

  • Access to all features
  • AI Extract
  • Priority conversions
  • Email support
Highest priority

Premium

  • Everything in Basic
  • Highest priority queue
  • Priority support

Pay-As-You-Go

  • No subscription
  • Credits never expire
  • Opt-in auto-refill
  • Access to all features
See prices

Ways to get a PDF's outline out of the file

MethodWhat you getPage numbersNesting
indox Bookmarks panelIndented text to copy, and a JSON fileIn parentheses after each titleTwo spaces per level in the text, children in the JSON
A PDF reader's outline paneThe outline on screen beside the pagesClick an entry to go to its pageAn expandable tree
A Python library such as pypdfNested lists in your own codeget_destination_page_number returns a zero-based indexA list after its parent entry, read with recursion
A command-line bookmark dumpYAML or JSON with title, page and childrenA 1-based page fieldA children list

Who extracts PDF bookmarks?

  • Researchers and students

    Paste a book's chapter list into your notes, with page numbers, without retyping it.

  • Editors and publishers

    Check that a manuscript's outline matches the contents page before it goes out.

  • Developers

    Download the bookmarks as JSON to feed a script, a search index or a table of contents on a website.

When to extract bookmarks, and when to pick another tool

  • You want a book's chapter list as text.
  • You want to compare a PDF's outline with its printed contents page.
  • A script needs the bookmarks as JSON.
  • You want to see how a file nests its sections.
  • You want to change the outline too. Edit it in the same panel.

Where can I read more?

Sources

Facts checked on November 5, 2026

Do it all with indox

Extract Bookmarks FAQs

How do I extract bookmarks from a PDF?

Open the Bookmarks panel. The bookmarks are listed with a count. Press Copy as text for a list you can paste, or Download the list for a JSON file.

What does the copied text look like?

One bookmark per line, indented two spaces for each level, with the page number in parentheses after the title. In our 8-page sample, Chapter 1 (3) sat two spaces in under Part I (2), and Section 1.1 (4) sat four spaces in.

What is in the downloaded file?

The bookmarks as JSON, as a nested list. Each entry has a title, a page and a children list. In our test the file for the 8-bookmark sample was 711 bytes. It does not include edits made on screen.

Why are there no copy or download buttons?

The file has no bookmarks. The panel says so.

Does it change my PDF?

No. Reading, copying and downloading leave the file alone.

Can I edit the list before I copy it?

Yes. Copy as text copies what is on screen, so your edits are in the copy. The downloaded JSON does not have them. Saving them into the file needs Save bookmarks.

Does it create bookmarks from headings?

No. It lists the bookmarks the file already has. To add some, use the Add Bookmarks to PDF page.

Can I copy bookmarks from one PDF to another?

Not in one step. This panel reads and edits the bookmarks of the open file and has no import. Copy the list as text, open the other PDF on the Add Bookmarks to PDF page and add the entries there, checking the page numbers as you go.

What happens to the PDF I upload?

The editor sends it to indox's server as soon as it opens, because the outline is read there, and reading the list does not change the file. When you are not signed in, the upload is deleted there 24 hours after the job.

Do Persian or other non-Latin titles survive?

In our test, two titles in Persian script, one mixed with English, appeared in the panel, in the copied text and in the JSON exactly as in the file.

Why does a merged PDF show no nesting?

In our test, a file made with the indox Merge PDF page listed all 11 bookmarks with the right pages, but all at one level. The nesting was already missing in the merged file, so there was none to show. See the troubleshooting table.