Citation Counter

Count citation markers and unique \cite keys in a manuscript.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste text and the counter totals citation markers: \cite-style commands, numeric brackets like [1] and [2-4], and author-year forms like (Kim, 2021). It also lists the unique LaTeX keys.

How to use

1
Step 1
Paste your text or LaTeX.
2
Step 2
Press Count.
3
Step 3
Read the marker total and the unique-key list.

How it works

Markers are occurrences in the text; unique keys count each \cite key once. A bracket range such as [2-4] or [1,2,5-7] counts as one marker, and so does a parenthesis of author-year citations such as (Kim and Lee, 2020; Zed et al., 2019). Plain author-year citations are counted as markers but have no key, so the key list covers only LaTeX commands.

markers = \cite-commands + [n] brackets + (Author, year) forms

Worked example

Mixed citation styles

Input
Prior work \cite{smith2020,lee2018} and \citep{smith2020} agree [1], [2-4]. See (Kim, 2021).
Output
Citation markers: 5; Unique \cite keys: 2 (lee2018, smith2020)
Walkthrough
Two LaTeX commands, two numeric brackets and one author-year form make 5 markers; the repeated smith2020 leaves two unique keys.

Limitations

  • Does not check that cited keys exist in a.bib file.
  • Author-year forms need a capitalised surname followed by a four-digit year; narrative citations such as “Kim (2021)” are not counted.
  • Pattern matching can miss unusual citation styles.

Questions

Does a range like [2-4] count as three?
No, it counts as one marker.
Are repeated citations counted?
Markers count every occurrence; the unique-key list counts each key once.
Does it read my.bib?
No, only the text you paste.

Features

  • Marker and unique-key counts
  • Key list
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • PDF, What is it FOR?

    Computerphile

    Papers and appendices often ship as fixed PDF packets.

    Watch on YouTube
  • HTML Crash Course For Absolute Beginners

    Traversy Media

    Web writing basics for paper and citation helpers.

    Watch on YouTube