Skip to content

BibTeX Key Generator

Type an author, year and title — or paste a list of formatted references — and get clean BibTeX citation keys such as smith2024quantum. Choose author + year, author + year + first title word, or author + EtAl + year, in lowercase or CamelCase. Accents and punctuation are removed, and keys that clash in a list get a, b, c suffixes. Free, no sign-up, and nothing leaves your browser.

Key format

Casing

Generate a single key

Fill in at least an author or a year to see the generated key.

Batch mode — one reference per line

Paste formatted references (APA, Harvard, or similar) — one per line. The author surname, year, and first title word are extracted on a best-effort basis, and colliding keys get a/b/c suffixes.

What makes a good citation key?

  • Predictable — a fixed scheme like author + year + first title word means you can often type \cite keys from memory without opening the .bib file.
  • ASCII-only — strip accents and punctuation (Müller → muller, O'Brien → obrien). Non-ASCII keys break some BibTeX tools and are painful to type.
  • Unique and stable — never rename a key after you start citing it. When an author has two papers in one year, add a/b/c suffixes rather than inventing a new scheme.
  • Short but meaningful — smith2024quantum beats both smith2024 (collides easily) and a full title slug (tedious to type).
  • Consistently cased — pick all-lowercase or CamelCase once and stick to it; classic BibTeX ignores case when matching keys but Biber does not, so Smith2024 and smith2024 may be one key or two, depending on the tool.

How to Use the BibTeX Key Generator

  1. Pick a key format and casing. The three formats are author + year, author + year + first title word and author + EtAl + year (multi-author); the casing is all lowercase or CamelCase. The choice applies to both modes below.
  2. For one key, fill in the fields. Enter surnames separated by commas (Smith, García), the year, and the title. The key updates as you type, with a copy button beside it.
  3. For many keys, paste references. In batch mode put one formatted reference on each line — APA or Harvard style works best — and press Generate Keys. Each line gets a key, in order, and Copy all keys copies the list.
  4. Use the keys. Put each key after the entry type in your .bib file, as @article followed by the key, and cite it in LaTeX with the same key.

The Three Key Formats

FormatLowercaseCamelCaseUse it when
author + yearsmith2024Smith2024you rarely cite two works by one author in a year
author + year + first title wordsmith2024quantumSmith2024Quantumyou want the safest default
author + EtAl + yearsmithetal2024SmithEtAl2024you want multi-author works to look different from single-author ones

Examples are the tool’s output for the surnames Smith and García, the year 2024 and the title “Quantum effects in biology”. The EtAl marker is added only when there is more than one author.

Every key is cleaned to ASCII letters and digits. Accents are stripped (Müller becomes muller), letters with no accent form are transliterated (ß becomes ss, ø becomes o) and punctuation goes (O’Brien becomes obrien). The title word is the first one of three or more letters that is not a stop word such as the, of, on, how or new, so “The new theory of everything” gives theory.

Worked Example

Paste these two references into batch mode with the default format: Smith, J. (2024) ‘Quantum effects in biology’, Nature… and Smith, J. (2024) ‘Quantum computing at scale’, Science…. Both would be smith2024quantum, so the generator marks each with a letter: smith2024quantuma and smith2024quantumb. Add Müller, K., & Lee, A. (2021). Sleep and memory in adolescents… and the key is muller2021sleep; with the EtAl format it becomes mulleretal2021, because a comma and an ampersand after the first surname signal a second author.

Choosing Keys That Last

  • Keep keys unique. A .bib file with two entries under one key is an error. The generator only separates clashes within the list you give it; it cannot see the rest of your file.
  • Never rename a key once you cite it. Every \cite in your documents depends on it. If the same author appears twice in a year, add a letter rather than changing your scheme.
  • Stay ASCII and use one casing. Spaces, commas, braces, quotation marks and % break keys, and non-ASCII letters cause trouble in some tools. Classic BibTeX ignores case when it matches a citation to its entry (and reports two keys that differ only by case as a repeated entry), but Biber treats keys as case-sensitive, so write each key with identical capitalization everywhere and never keep two keys that differ only by case.
  • Read the batch results. Batch mode takes the first word of each line as the surname and reads the year and title from what follows. A name in natural order (John Smith) gives john2020, and a surname with a particle (van der Berg) gives van.

Which Tool Do You Need?

Frequently Asked Questions

What is a BibTeX citation key?
The identifier after the entry type in a .bib file, as in @article{smith2024quantum, … }, and the handle you cite in LaTeX with \cite{smith2024quantum}. It must be unique in the bibliography, and because every citation in your documents points to it, it should stay stable.
What is the best BibTeX key format?
The common convention is the first author’s surname, the year and the first significant title word, all lowercase: smith2024quantum. It is readable, sorts with the author, and rarely clashes. Author and year alone is shorter but collides as soon as an author appears twice in a year.
How are accents and special characters handled?
They are reduced to ASCII. Müller becomes muller, García becomes garcia, ß becomes ss and O’Brien becomes obrien. Keys made of ASCII letters and digits work in every BibTeX and biblatex tool.
What happens when two references give the same key?
In batch mode every key that occurs more than once gets a lowercase letter in order of appearance — smith2024a, smith2024b, smith2024c — and keys that occur once are left alone. After the letters pass z, a number is added.
Can I paste whole formatted references?
Yes. Batch mode reads one reference per line and takes the first word as the surname, the first four-digit year as the year, and the first significant word after the year as the title word. References in APA or Harvard style, which begin with Surname, Initial, are parsed best. Always glance over the keys.
Should I use CamelCase or lowercase keys?
Either works, but choose one and keep it. Lowercase is easier to type from memory and avoids case-mismatch warnings; CamelCase makes the parts easier to read. Mixing them in one project invites errors.
Is the BibTeX key generator free?
Yes. It is free with no sign-up, and it runs entirely in your browser — nothing you type is uploaded.

Related Tools

More in Citation & Reference Tools

See all Citation & Reference Tools