Convert PubMed .nbib to BibTeX

To convert NBIB to BibTeX, choose the .nbib file from PubMed and download the .bib file. Journal articles become @article entries with full author names, the journal’s full title, the DOI and the PMID.

Updated

Runs in your browser. Files are read on your device and never uploaded. Only if you fetch PubMed IDs are those IDs sent, to NCBI.

Getting an .nbib file from PubMed

  • Run your search in PubMed, then tick the records you want, or tick none to take them all.
  • Choose Send to, then Citation Manager, and confirm the selection: the PubMed User Guide allows up to 10,000 results.
  • Click Create file. Your browser saves an .nbib file. For one article, the Cite button also downloads an .nbib file.

Field mapping: PubMed .nbib to BibTeX

Where each field comes from in PubMed .nbib and goes to in BibTeX.

  • Title

    From PubMed .nbib
    TI
    To BibTeX
    title
  • Authors

    From PubMed .nbib
    FAU (full names), or AU, with CN for a group
    To BibTeX
    author, joined with “and”
  • Year

    From PubMed .nbib
    DP
    To BibTeX
    year
  • Journal

    From PubMed .nbib
    JT, or TA
    To BibTeX
    journal, or booktitle for a chapter or conference paper
  • Volume and issue

    From PubMed .nbib
    VI, IP
    To BibTeX
    volume, number
  • Pages

    From PubMed .nbib
    PG
    To BibTeX
    pages, with --
  • DOI

    From PubMed .nbib
    LID or AID marked [doi]
    To BibTeX
    doi
  • PMID

    From PubMed .nbib
    PMID
    To BibTeX
    pmid
  • Abstract

    From PubMed .nbib
    AB
    To BibTeX
    abstract
  • Keywords

    From PubMed .nbib
    MH (MeSH) and OT
    To BibTeX
    keywords
  • Type

    From PubMed .nbib
    Journal article; a book or chapter if it has BTI; unpublished for a preprint
    To BibTeX
    @article, @book, @incollection, @inproceedings… or @misc

BibTeX needs to tell the family name from the given names. PubMed’s full names (“Whiting, Penny F”) already do; where only the short form exists, “Whiting PF” is written as “Whiting, P. F.” so BibTeX reads it correctly.

Common problems with NBIB to BibTeX

  • Journal names are in lower case. PubMed’s full journal title (JT) is written that way, as in “Annals of internal medicine”. Your bibliography style may recapitalise it; if not, edit the journal field.
  • Titles end with a full stop. PubMed ends every title with one. Most BibTeX styles add their own punctuation, so you may see two.
  • A group author is split into names. A consortium or group (CN) is wrapped in braces, as {QUADAS-2 Group}, so BibTeX keeps it whole.

How to cite this tool

OtterSR. Convert PubMed .nbib to BibTeX. https://www.ottersr.com/tools/ris-converter/nbib-to-bibtex (accessed today’s date).

Please cite the method as well:

  • PubMed User Guide. National Center for Biotechnology Information, US National Library of Medicine.

  • Patashnik O. BibTeXing. 8 February 1988. Distributed with BibTeX on CTAN.

  • Shafranovich Y. Common Format and MIME Type for Comma-Separated Values (CSV) Files. RFC 4180. Internet Engineering Task Force, October 2005.

Sources

  1. PubMed User Guide. National Center for Biotechnology Information, US National Library of Medicine. https://pubmed.ncbi.nlm.nih.gov/help/
NBIB to BibTeX: PubMed citations for LaTeX · OtterSR