Skip to content
DevToolKit

PDF Edit Bookmarks

Add, edit, and remove bookmarks in PDF files online for free. Create a navigable table of contents. All processing in your browser.

pdf

Drop your PDF here, or click to browse

Files are processed entirely in your browser — never uploaded

Processed locally
Was this tool helpful?

How to Use

Edit PDF bookmarks in four steps:

  1. Upload your PDF — Drag and drop or click to browse. Existing bookmarks are automatically extracted and displayed in a tree editor.
  2. Edit the bookmark tree — Rename bookmarks by editing their titles. Change page targets by updating the page number. Use indent/outdent to create parent-child hierarchy.
  3. Add or remove bookmarks — Click Add Bookmark to create new entries. Use the delete button to remove unwanted bookmarks. Reorder with the up/down arrow buttons.
  4. Save and download — Click Save Bookmarks to rebuild the PDF outline dictionary. Download the updated PDF with your new bookmark structure.

All processing runs in your browser using pdf-lib and PDF.js. No files leave your device.

About This Tool

PDF bookmarks — formally called the document outline — provide a clickable table of contents in the PDF viewer's sidebar. They are separate from page content and stored in the document's catalog dictionary as a linked-list data structure. This tool reads that structure, presents it as an editable tree, and rebuilds it from scratch when you save.

The PDF Outlines dictionary structure

The PDF specification stores bookmarks as an /Outlines dictionary in the document catalog. Each outline item is a dictionary with /Title (display text), /Dest or /A (navigation target), and linked-list pointers: /First, /Last, /Next, /Prev, and /Parent. The root /Outlines entry points to the /First child, and each sibling links to the /Next one, forming a doubly-linked list at each level of the hierarchy.

Destination types and page references

Each bookmark's destination specifies where clicking it navigates to. The most common format is [pageRef /FitH top], which scrolls to the specified vertical position on the target page, fitting the page width to the viewport. Other formats include /Fit (fit entire page), /XYZ left top zoom (exact coordinates and zoom level), and /FitR (fit a specific rectangle). This tool uses /Fit for simplicity — clicking a bookmark shows the full target page.

Why this tool rebuilds the entire outline

Modifying a linked list in place — inserting, deleting, or reordering nodes — requires carefully updating multiple pointers (First, Last, Next, Prev, Parent, Count) across every affected node. A single incorrect pointer creates a corrupt outline that may crash PDF viewers. Instead, this tool takes the safer approach: it reads the existing outline into a simple JSON array, lets you edit the array, then constructs a completely new outline dictionary from scratch. This eliminates pointer corruption and ensures a valid structure every time.

All processing happens client-side in your browser. To generate bookmarks automatically from heading text, use PDF TOC Generator. To edit other PDF metadata like title and author, try PDF Edit Metadata.

Why Use This Tool

Editing PDF bookmarks serves several important document management needs:

  • Document navigation — Long PDFs without bookmarks are difficult to navigate. Adding a bookmark structure with chapter headings and section links makes it easy to jump directly to relevant content.
  • Merged document organization — After merging multiple PDFs, the resulting document often lacks a coherent bookmark structure. This tool lets you create a unified table of contents across the combined document.
  • Scanned document accessibility — Scanned PDFs from physical books or documents rarely have bookmarks. Adding them transforms an unwieldy scan into a navigable digital document.
  • Publishing and distribution — Professional PDF documents are expected to have a well-structured bookmark tree. Reports, manuals, and ebooks benefit from hierarchical bookmarks that mirror the document's logical structure.
  • Compliance requirements — PDF/A and PDF/UA accessibility standards recommend or require a document outline for long documents to assist screen reader navigation.

Processing locally ensures confidential documents like legal filings, medical records, and corporate reports never leave your device.

FAQ

What are PDF bookmarks?
Bookmarks (also called outlines) are clickable entries in the PDF sidebar that jump to specific pages, acting as a table of contents.
Can I create nested bookmarks?
Yes. Create hierarchical bookmark structures with parent and child entries for organized navigation.
Is my PDF uploaded?
No. All processing happens locally in your browser.