Skip to content
TileDownSite version v0.5.24

Check every link before you publish

tiledown check-links reads a Markdown file, an HTML file or a built site and reports each link as ok, moved, broken, unverifiable or skipped.

A site is made of promises that an address still leads somewhere. tiledown check-links checks them.

tiledown check-links cv.md                  # one Markdown file
tiledown check-links dist/                  # a built site, every page
tiledown check-links --internal dist/       # the site's own links and anchors

It finds each link with the file and line where it is written, in inline, reference and automatic links, images, front matter, and href, src, poster and srcset in HTML. Each address is requested once, and every link ends in exactly one group:

  • ok

  • moved, a permanent redirect, with the new address so the link can be updated

  • broken, with the status or the reason: DNS, TLS, timeout, refused connection, redirect loop

  • unverifiable, for a host that turns automated requests away

  • skipped, for mailto: and tel:

The check is polite: HEAD first, one host at a time with a delay, an honest User-Agent. --json prints a machine-readable report, and the exit status is 0 unless a link is broken, or with --strict also moved or unverifiable.

It is the only command that uses the network, and only when you call it. build-site, serve and doctor behave exactly as before. The full reference is in docs/check-links.md in the repository.

TileDown Updates

Stay updated with every exciting new feature we bring to TileDown, the Markdown‑first way to build sites you truly own.

View Markdown source
index.md
---
title: Check every link before you publish
date: 2026-11-16
description: tiledown check-links reads a Markdown file, an HTML file or a built site and reports each link as ok, moved, broken, unverifiable or skipped.
tags: Release, Links, Tooling
image: /assets/post-publishing.svg
imageDark: /assets/post-publishing-dark.svg
---
# Check every link before you publish

A site is made of promises that an address still leads somewhere. `tiledown check-links`
checks them.

```sh
tiledown check-links cv.md                  # one Markdown file
tiledown check-links dist/                  # a built site, every page
tiledown check-links --internal dist/       # the site's own links and anchors
```

It finds each link with the file and line where it is written, in inline, reference
and automatic links, images, front matter, and `href`, `src`, `poster` and `srcset`
in HTML. Each address is requested once, and every link ends in exactly one group:

- `ok`
- `moved`, a permanent redirect, with the new address so the link can be updated
- `broken`, with the status or the reason: DNS, TLS, timeout, refused connection,
  redirect loop
- `unverifiable`, for a host that turns automated requests away
- `skipped`, for `mailto:` and `tel:`

The check is polite: `HEAD` first, one host at a time with a delay, an honest
`User-Agent`. `--json` prints a machine-readable report, and the exit status is 0
unless a link is broken, or with `--strict` also moved or unverifiable.

It is the only command that uses the network, and only when you call it.
`build-site`, `serve` and `doctor` behave exactly as before. The full reference is
in `docs/check-links.md` in the repository.