PDFs on your website: when to use HTML instead, and how to make PDFs accessible

Published 5 November 2026 · Last updated · General information, not legal advice

For most things visitors need to read or act on, a web page is better than a PDF. HTML reflows to fit a phone, works with zoom, and is far easier to make accessible. Keep PDFs for documents people genuinely need to print, sign or keep, such as an invoice or a formal record. When you do publish a PDF, make it a tagged PDF with real headings, alt text for images, a document title, a language and a sensible reading order. W3C publishes a set of WCAG techniques just for PDFs, which shows they are expected to meet the same success criteria as your pages.2

Why HTML usually wins

The UK Government Digital Service set out the case in a 2018 post. Its arguments apply to an online store as much as to a government site:1

  • PDFs do not fit the screen. Their layout is fixed, so on a phone people pinch and scroll. HTML changes size to fit the browser.
  • They are built for print. The post says PDFs are not designed for reading on screens.
  • They take people out of your site. A visitor who lands on a PDF from a search engine loses your navigation, your basket and every link back to your products.
  • They are harder to access. A PDF is only accessible if it is carefully tagged, and even then it limits people's ability to change text size or colours.
  • They go out of date. PDFs are harder to update, and downloaded copies live on with old prices and policies.

The author added that PDFs still have a place, for example as a fixed record, and suggested publishing them alongside an HTML version rather than instead of it.1 Reflow makes the same point from the accessibility side: WCAG 1.4.10 asks that content can be read at 320 CSS pixels wide without scrolling in two directions,8 which a fixed-layout PDF page rarely manages.

Store content that should be a web page

ContentBetter asWhy
Size guideAn HTML table on the product page or a size guide pageRead while choosing a size, often on a phone
Care or assembly instructionsA web page with numbered steps and described images; a PDF copy for printing if usefulEasy to follow and to update
Returns, delivery and termsWeb pagesLinked from checkout and footer; must stay current
Price list or catalogueYour product pages, with a PDF for trade customers if neededPrices change; product pages are already accessible to check
Order form to print and postAn online form, with the PDF as a fallbackAn online form is easier to make accessible and to test
Invoice or certificateA PDF is reasonablePeople keep and print these; make the PDF accessible

What makes a PDF accessible

WebAIM explains that a PDF has three layers: what you see, the content, and the tags. Tags are a set of standard structure types, such as headings, lists, tables and links, that assistive technology reads. They do not change how the document looks. Without tags, WebAIM says, a PDF would not be considered accessible.3

W3C's PDF techniques list what to get right.2 The main ones:

  • Headings marked with heading tags (PDF9), and bookmarks for long documents (PDF2).
  • Alt text for informative images (PDF1), and decorative images marked as artifacts so they are skipped (PDF4).
  • Correct reading and tab order (PDF3), so a two-column page is not read straight across both columns.
  • Real tables marked up with table tags (PDF6), and lists with list tags (PDF21).
  • Links with meaningful text (PDF11).
  • A document language (PDF16), which W3C lists as a sufficient technique for 3.1.1 Language of Page.6
  • A document title (PDF18), which W3C lists as a sufficient technique for 2.4.2 Page Titled.7
  • Real text, not a scan: OCR for scanned documents (PDF7).
  • Labelled form fields in fillable forms (PDF10), with required fields indicated (PDF5).

How to create an accessible PDF

  1. Start with an accessible source document. WebAIM says a well-built Word document "should contain almost all the information necessary for an accessible PDF": headings, alt text, marked decorative images, table structure, descriptive links, lists, good contrast and a document title.4 Use the built-in heading styles rather than bold text.
  2. Export with tags. Use Acrobat's PDFMaker (Create PDF) or File, Save As, PDF, and check that the option for document structure tags for accessibility is on.4 WebAIM warns: never create a PDF with the Print option in Office, because it loses headings, alternative text and other tags.4 On a Mac, WebAIM notes that tagged export depends on your Office version, and PowerPoint cannot export a tagged PDF in any version of Office for Mac.4
  3. Check and repair. Some cleanup in Acrobat may still be needed.4 Acrobat Pro's Accessibility Check flags issues such as wrongly nested headings, missing alternative text and table header problems, and its Reading Order tool and Tags panel let you fix structure.5 The checker prompts you to check contrast yourself.5
  4. Read it with a screen reader. A checker confirms tags exist; it cannot tell you whether the reading order makes sense or the alt text is accurate.

If a PDF has no tags or a broken tag structure, WebAIM recommends fixing the source document and creating the PDF again rather than patching it.4

Linking to PDFs

Tell visitors what they are about to open. Link text such as "Care instructions (PDF, 1 page)" warns screen reader and mobile users that a file is coming, and lets them choose. See link text that makes sense out of context. If an HTML version exists, link to it first.

On Shopify and WordPress

On Shopify, size guides and care instructions can live in a page, in a product description, or in a theme block, and a table in a page or description is usually better than an uploaded PDF or image. On WordPress and WooCommerce, the block editor's Table and Heading blocks give you real structure without a PDF. In both, search your files for old PDFs that are still linked from product pages or the footer, and decide for each whether it should become a page, be fixed, or be removed.

Checking what you have

  1. List every PDF linked from your site, starting with ones linked from product pages, checkout and the footer.
  2. For each, ask whether it should be a web page instead.
  3. For PDFs you keep, run Acrobat's accessibility check and read the document with a screen reader.

Web pages are easier to check than PDFs. Jralo's free check tests your homepage and up to five linked pages against WCAG 2.2 A and AA, and helps you understand which countries' accessibility laws may be relevant, with a link to a guide for each (general information, not legal advice). Automated tools find many problems, not all, which is one more reason to move important content out of PDFs and into pages you can test every day.

What else do people ask?

Does WCAG apply to PDFs on my website?

W3C publishes WCAG techniques specifically for PDF documents, such as PDF16 for setting the document language and PDF18 for the document title, and lists them as sufficient techniques for success criteria like 3.1.1 and 2.4.2. A PDF on your site is content visitors use, so test it like any other page.

Is "Print to PDF" good enough?

No. WebAIM warns never to create a PDF with the Print option in Office, because it loses headings, alternative text and other tags. Use Save As PDF with the option for document structure tags, or Acrobat's PDFMaker, starting from a well-structured source document.

What about scanned documents?

A scanned page is just a picture of text, so a screen reader has nothing to read. W3C's technique PDF7 covers performing optical character recognition (OCR) to provide real text. Even after OCR, check the result and add the structure, or better, retype the content as a web page.

Check your site now

Jralo's free check tests your homepage and up to five pages for accessibility (WCAG 2.2 A and AA) and website QA problems, and tells you which countries' accessibility laws are likely relevant to you. No sign-up.

Run the free check

Where do these facts come from?

Every number and legal statement in this post links to one of these sources, read on 13 October 2026.

  1. Government Digital Service blog: Why GOV.UK content should be published in HTML and not PDF (Neil Williams, 16 July 2018)
  2. W3C WAI: Techniques for WCAG 2.2 (PDF techniques)
  3. WebAIM: PDF Accessibility, Defining PDF Accessibility
  4. WebAIM: PDF Accessibility, Converting Documents to PDF
  5. WebAIM: PDF Accessibility, Acrobat Pro accessibility tools
  6. W3C WAI: Understanding Success Criterion 3.1.1 Language of Page
  7. W3C WAI: Understanding Success Criterion 2.4.2 Page Titled
  8. W3C WAI: Understanding Success Criterion 1.4.10 Reflow

More questions

What should you read next?