Purplelink
← All guides

How to get BibTeX from a DOI or arXiv ID

Typing BibTeX by hand is error-prone. If a paper has a DOI or an arXiv ID, you can fetch a clean entry automatically. This guide shows how and what to double-check.

Typing a BibTeX entry from a paper PDF is busywork and a frequent source of citation errors (typos in author names, a wrong year, mangled diacritics, a miscategorized entry type). Most academic papers have a stable identifier you can use instead. Published work has a DOI (digital object identifier, e.g., 10.1145/3292500.3330701), and preprints have an arXiv ID (e.g., 2103.00020). Paste either one into the free BibTeX Builder and you get a well-formed BibTeX entry back in about a second. This guide covers the workflow, what to verify after import, and the common edge cases.

Where the metadata comes from

Each identifier routes to a different authoritative source.

Because the data comes from the publisher's own submission, it is typically accurate. The Builder does not keep any of it. Your identifier is sent to CrossRef or arXiv, the response is formatted as BibTeX, and the result is returned to your browser.

Step-by-step

  1. Find the DOI. On the publisher's article page it is usually shown near the title (e.g., "doi.org/10.1145/3292500.3330701") or in the citation block. In a PDF, the DOI is often in the header or footer of the first page. The format is 10.{registrant}/{suffix}. You can include the leading https://doi.org/ or paste the bare DOI, and the Builder strips the prefix either way.
  2. Or find the arXiv ID. In the URL: arxiv.org/abs/2103.00020. In the PDF header it is usually arXiv:2103.00020. Either format works.
  3. Paste into the Builder. Open the BibTeX Builder and paste your identifier. To batch-import a reading list, paste several identifiers separated by newlines.
  4. Click "Build." The tool queries CrossRef or arXiv with a proper User-Agent header (the string that identifies the client) and formats the response as BibTeX.
  5. Copy into your .bib. Paste the entry into your bibliography file and rename the auto-generated key if you have a project naming convention (see below).

What to verify after import

CrossRef and arXiv metadata is generally clean. Four things are worth a quick check.

Author names with diacritics

Names like "Müller", "Lévy", and "Søndergaard" usually come back correctly encoded in UTF-8. If your build uses classic 8-bit BibTeX (not Biber), convert these to LaTeX accent macros ({\"u}, {\'e}, {\o}). You can also switch to Biber, which handles UTF-8 natively. The validator accepts either form, but legacy BibTeX mangles UTF-8 silently.

Title capitalization

BibTeX styles lowercase title words automatically unless you protect them with braces. If a title contains a proper noun, acronym, or programming language name, wrap it in braces.


title = {Bert: pre-training of deep bidirectional transformers for language understanding}


title = {{BERT}: Pre-training of Deep Bidirectional Transformers for Language Understanding}

This is the most common post-import edit. The Builder does not make this judgment automatically because what to protect depends on your bibliography style.

Entry type

For a preprint, CrossRef may return @misc or @article depending on the registrant. For a workshop paper, you may get @inproceedings or @article depending on venue classification. Adjust the type to match what your bibliography style expects. For example, ACM's acmart style cares whether a paper is @inproceedings or @article.

Citation key

The Builder generates a default key from the first author and year (e.g., vaswani2017). If you use a longer convention (vaswani2017attention, vaswani-attention-2017), rename it. Consistency across your .bib matters more than the exact format. The validator flags duplicate keys if you collide with an existing entry, including a key that differs only in letter case.

Edge case: preprint vs published version

Many papers exist as both an arXiv preprint and a peer-reviewed publication with a different DOI. The published version is canonical for citation (it is the version of record). However, the arXiv preprint is often open-access where the publisher's PDF is paywalled.

A good .bib entry for such a paper has two parts.

  1. Use the published version's DOI as the primary identifier and the published venue as the source.
  2. Add an eprint field with the arXiv ID. BibLaTeX renders this as an additional eprint link in the reference list.
@article{vaswani2017,
  author     = {Vaswani, Ashish and Shazeer, Noam and others},
  title      = {Attention Is All You Need},
  journal    = {Advances in Neural Information Processing Systems},
  volume     = {30},
  year       = {2017},
  doi        = {10.48550/arXiv.1706.03762},
  eprint     = {1706.03762},
  eprinttype = {arxiv},
}

What if the DOI doesn't resolve?

Most failures are typos, such as a missing character or a confused 0/O or 1/l. Paste the DOI into https://doi.org/ in your browser. If it does not redirect to a real page, the DOI is wrong, so check the original source again. If the DOI is correct but CrossRef has no record, it may be too new (CrossRef ingestion can lag a few days). The publisher may also not have registered it, which happens with smaller venues.

The BibTeX Validator's "Check DOI resolution" flag spots AI-generated or hallucinated DOIs. Every DOI that returns a 404 against doi.org is reported with its HTTP status. Combine this with the CrossRef title-match check to catch a hallucinated citation before submission.

Batch import

A reference manager (Zotero, Mendeley, Paperpile, etc.) usually produces clean BibTeX for a reading-list export. However, if you collected a list of DOIs or arXiv IDs by hand, paste them into the Builder one per line. It fetches all of them in parallel (with rate-limiting against CrossRef) and returns a single concatenated .bib you can save.

Once the entry is in your file, run the whole .bib through the validator to verify the new entry does not conflict with anything you already had (duplicate keys, missing required fields, dead DOIs). The validator returns an annotated .bib with one comment per entry summarizing its state, which suits a final pre-submission check. For the manuscript as a whole, including whether each cited source supports its claim, Paper Review ($14 to $39, no account) is the fuller pre-submission check.

Frequently asked questions

Where does the BibTeX data come from?
Crossref (the publisher metadata registry) resolves DOIs. arXiv IDs use arXiv's own metadata. Both are authoritative sources, so the core fields are usually correct.
What if the title's capitalization is wrong?
BibTeX lowercases titles unless you protect words with braces. Wrap proper nouns or acronyms in braces, like {LaTeX}, to keep their capitalization.
Is the BibTeX builder free and private?
Yes. The builder fetches the entry and stores nothing. The identifier and result are not retained.
Can I get BibTeX from an arXiv ID without a DOI?
Yes. Paste the arXiv ID (e.g. 2103.00020) directly. The builder retrieves the metadata from arXiv.

From the maker of these tools

Writing LaTeX on a Mac?

ModernTex is a native macOS LaTeX studio. It has multi-file manuscript navigation, a PDF preview that stays in sync, BibTeX completion that searches by author or title, and compile errors in plain language. $19.99 once, all updates included, forever.

Requires macOS 14 or later. No account, and the trial is the full app.