Bibliographies and Citations

How to Cite a Website in LaTeX

Cite a website in LaTeX with a BibTeX misc entry or a biblatex online entry. Covers the URL, access date, a missing author, and how the output looks.

On this page
  1. Quick answer
  2. What a web citation needs
  3. BibTeX: a @misc entry
  4. biblatex: an @online entry
  5. When there is no author
  6. Showing the access date
  7. Checking the output
  8. Keeping web sources stable

Quick answer

Add an entry for the page to your .bib file. Include the author or organization, the page title, the URL, and the date you accessed the page. Then cite it with \cite{key}. In BibTeX, use the @misc entry type. In biblatex, use @online.

What a web citation needs

A complete web citation usually includes:

  • Author: the person or organization responsible for the page.
  • Title: the title of the page.
  • URL: the full web address.
  • Access date: the date you read the page. Websites change, so this helps readers find the version you used.
  • Year: the year the page was published or last updated, if the page shows one.

Not every style displays every field. Include them all, and let the style choose what to show.

BibTeX: a @misc entry

In BibTeX, use @misc for web pages. Put the URL in the howpublished field with \url, and put the access date in the note field:

@misc{example-guide,
  author       = {{Example Organization}},
  title        = {Guide to Writing Citations},
  howpublished = {\url{https://www.example.com/guide}},
  year         = {2025},
  note         = {Accessed: 2025-01-15},
}

The double braces around the organization name stop BibTeX from splitting it into a first name and a last name. The guide to author names in LaTeX covers name formats in .bib files too.

The \url command comes from the hyperref or url package, so load one of them in your preamble. The \url command also lets long URLs break across lines, which keeps them inside the margin.

biblatex: an @online entry

With biblatex, use @online. It has dedicated url and urldate fields, so the style can format the access date for you:

@online{example-guide,
  author  = {{Example Organization}},
  title   = {Guide to Writing Citations},
  url     = {https://www.example.com/guide},
  urldate = {2025-01-15},
  year    = {2025},
}

Load biblatex with the biber backend, and point it at your file:

\usepackage[backend=biber,style=numeric]{biblatex}
\addbibresource{references.bib}

When there is no author

If a page has no author, leave out the author field. Many styles then move the title to the front of the entry. The exact layout depends on the style, so check the output. If an organization publishes the page, use its name as the author, as shown above.

Showing the access date

BibTeX’s note field prints whatever you put in it, so use one date format for every web entry. biblatex formats the urldate field according to the style and language settings, so the output may differ from your BibTeX entries. Choose one approach and use it consistently.

Checking the output

Compile with the full sequence. For BibTeX, run pdflatex, bibtex, pdflatex, pdflatex. For biber, run pdflatex, biber, pdflatex, pdflatex. Then read the bibliography in the PDF. Check that the title, organization, URL, and access date all appear. A missing URL or date usually means a missing field in the .bib entry.

If you are working in Overleaf, how to make citations in Overleaf shows the full project setup. For the rest of the bibliography workflow, see Bibliographies and Citations in LaTeX.

Keeping web sources stable

Web pages change or disappear. For sources you rely on heavily:

  • Save a PDF copy of the page and keep it with your project files.
  • Consider an archived link from a web archive service, and cite the archived version if your field expects it.
  • Record the access date in your entry, even if the page does not show a publication date.

The complete guide to bibliographies and citations

Bibliographies and Citations in LaTeX
Read the guide

Keep exploring

Guides from other topics

All topics →