DOCX checks · alt text, headings, tables, language, contrast, links

Word Accessibility Checker

Drop a .docx to see where it will trip a screen reader: pictures without descriptions, skipped heading levels, tables with no header row, low-contrast text, 'click here' links and floating objects, each with its location and a fix.

Document to check

Drop a .docx file

Up to 50 MB. Older .doc files: save as .docx first.

This reads the file's XML and covers ten checks. It cannot tell whether a description is accurate, and a clean report is not a certification.

Word Accessibility Checker

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

A Word document can look finished and still fail a screen reader in several ways at once: no title in the file properties, no language set, a picture with an empty description, a table with no header row, three empty paragraphs standing in for a gap, grey text at 1.92:1 contrast, and a link that says 'click here'. A skipped heading level, Heading 1 followed straight by Heading 3, is the milder case: it is flagged for review, not failed.

Key features

  • Alternative text for inline and floating pictures, charts and older-format drawings, flagging missing text and file names such as image001.png, and honouring 'Mark as decorative'
  • Heading order from heading styles and outline levels: first heading not level 1, skipped levels, empty headings, and bold one-line paragraphs that look like headings
  • Tables without a repeated header row, one-row or one-column layout tables, and merged cells across or down
  • Document title and default language from the file properties, styles and settings
  • Blank paragraphs used for spacing, reported as runs, and colour contrast of text colours written into the file against shading, highlight or the page colour

Which parts of the DOCX each check reads

A .docx is a ZIP of XML parts. The checker reads word/document.xml for paragraphs, runs, tables, drawings and links, word/styles.xml to resolve heading levels and inherited colours and sizes, word/settings.xml and docProps/core.xml for the language and title, and the header and footer parts for pictures and floating objects. Each part is inflated through a stream that counts real output bytes against a cap on the whole package, so a file whose ZIP directory understates its size is stopped, and so is one that lists the same part twice under names that differ only in capital letters.

Contrast uses the WCAG formula on the sRGB colours in the file. Text of 18 pt or more, or 14 pt or more in bold, needs 3:1, and everything else needs 4.5:1. The background is the first of: highlight colour, run shading, paragraph shading, cell shading, then the page colour, and white if none is set.

Links are read from hyperlink elements, simple fields and complex HYPERLINK fields. A link fails when its text is empty, a web address over 30 characters, or one of a short list of phrases such as 'here', 'click here', 'link' and 'read more'. The same text pointing at different addresses is flagged for review.

How it works

Paragraphs are visited in document order, including those inside tables and content controls, so every finding carries a place: 'Paragraph 12 under "Quarterly results"' or 'Table 2, row 1, cell 3', plus the first 60 characters of the text.

When to run it

  • A university department checks a 40-page handbook before posting it and finds 14 pictures with no description, grouped by the heading each sits under.
  • A grant application template has a table of deliverables whose first row looks like a header but is not marked as one, so every reader's screen reader announces it as data.
  • A newsletter built with text boxes for sidebars gets floating-object and text-box warnings, each with the sidebar's first words.

Running a check

  1. Drop the .docx file.
  2. Read the Fail group, then Needs review. Open 'Show all' on any check with more than eight locations.
  3. Download the CSV, one row per finding, for whoever edits the document.

Example

report.docx, as laid out in Word

File properties: Title empty; no language set
1  Heading 1: Quarterly report
2  Prepared for the facilities committee.
3  Heading 3: Budget notes
4  Figures are provisional until the audit closes.   (text colour #BBBBBB)
5  [picture, alternative text empty]
6  [picture, alternative text "image001.png"]
7  [floating picture, "Floor plan of level 2"]
8-10  three empty paragraphs
11 link text: click here
12 link text: Read the full tender documents at the portal
Table 1: Room | Area | Use, then Atrium (two columns merged) | Foyer; no repeated header row
Table 2: Item | Cost | Due, then Lift | 40,000 | May; header row repeats

Summary and results

0 pass, 3 needs review, 7 fail. Fail: title (Title is empty), language (no w:lang), image alternative text (1 without, 1 file name), table header rows (Table 1: no row marked 'Repeat as header row'), blank paragraphs (3 in a row), contrast (#BBBBBB on #FFFFFF is 1.92:1, needs 4.5:1) and link text (1 of 2, 'click here'). Review: heading structure ('Heading 1 is followed by Heading 3'), merged cells (Table 1) and floating objects (1).

Limits

Whether a description is accurate or useful is not judged. A picture described as 'chart' passes.

Text colours that Word sets as automatic, and colours that come only from a theme without a value in the file, are not tested, so a clean contrast result covers explicitly coloured text only.

Headings are found from heading styles and outline levels. Text that is large and bold but uses no heading style is reported only as a possible heading.

Only the main document, headers and footers are read. Footnotes, endnotes and comments are not scanned for pictures or links.

  • Open 'Show all' on the alternative-text check first: the paragraph and nearest heading in each location let you jump to the picture with Find.

Common errors and how to fix them

"This is an old .doc file or a password-protected Word file, not a .docx."
Open it in Word, remove the password if there is one, and save it as .docx.
"This does not look like a .docx file."
The file is not a Word ZIP package, or it is damaged. Re-save it from Word or Google Docs as Word Document (.docx).
"The part word/document.xml is over 90 MB, which is too large to check here."
The body of the document is larger than the checker will read. Split the document into sections saved as separate files, or remove very large embedded content.

Best practices

  • Fix heading levels and table header rows in the Word source first, because they change what the other checks report.

What this does not replace

These ten checks cover the failures that can be read from the file's XML. A full review also needs reading order checked with a screen reader, tracked changes resolved and, for a PDF made from the document, a PDF-level check. The PDF accessibility checker on this site covers the second half of that path.

Frequently asked questions

Why does a document made by another tool fail the language check?

Word always writes a default language into its styles. Documents generated by libraries and some converters leave it out, and then the proofing language is unknown to a screen reader. Setting it in Word fixes it.

Is an empty paragraph always a problem?

A single one is common and only counted. Runs of two or more are reported, and a run of three or more fails, because each empty paragraph is announced as 'blank' and the gap should be paragraph spacing instead.