RIS converter

This RIS converter reads a reference file in one format and writes it in another: RIS, PubMed .nbib, BibTeX or CSV in, and RIS, CSV for Excel or BibTeX out. It can also turn a list of PubMed IDs into a file. Choose “convert from” and “convert to”, paste the text or choose a file, and it’s converted in your browser, with a count of the references it read and a list of any it couldn’t.

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.

How the converter reads each format

It works out the format from the file’s extension, or from what the text looks like, and reads every format into the same standard fields: title, authors, year, journal, volume, issue, pages, DOI, PMID, abstract, keywords and URL.

Where each standard field comes from, best first.

  • Title

    RIS
    TI, T1
    PubMed (.nbib)
    TI
    BibTeX
    title
    CSV header
    Title
  • Authors

    RIS
    AU or A1, one per line
    PubMed (.nbib)
    FAU, or AU, with CN for a group
    BibTeX
    author, split on “and”
    CSV header
    Authors, split on semicolons
  • Year

    RIS
    PY, Y1, DA
    PubMed (.nbib)
    DP
    BibTeX
    year, date
    CSV header
    Year, Publication Year, Date
  • Journal

    RIS
    JF, T2, JO, JA
    PubMed (.nbib)
    JT, TA
    BibTeX
    journal, booktitle
    CSV header
    Journal, Source title
  • Volume and issue

    RIS
    VL, IS
    PubMed (.nbib)
    VI, IP
    BibTeX
    volume, number
    CSV header
    Volume, Issue
  • Pages

    RIS
    SP and EP
    PubMed (.nbib)
    PG
    BibTeX
    pages
    CSV header
    Pages, or Page start and Page end
  • DOI

    RIS
    DO
    PubMed (.nbib)
    LID or AID marked [doi]
    BibTeX
    doi
    CSV header
    DOI
  • PMID

    RIS
    AN from PubMed or MEDLINE, or “PMID:” in a note
    PubMed (.nbib)
    PMID
    BibTeX
    pmid
    CSV header
    PMID, PubMed ID
  • Abstract

    RIS
    AB, N2
    PubMed (.nbib)
    AB
    BibTeX
    abstract
    CSV header
    Abstract
  • Keywords

    RIS
    KW, one per line
    PubMed (.nbib)
    MH and OT
    BibTeX
    keywords
    CSV header
    Keywords, Author Keywords
  • URL

    RIS
    UR
    PubMed (.nbib)
    none
    BibTeX
    url
    CSV header
    URL, Link

Lines that wrap, as EndNote and Ovid write long abstracts, are joined back up, and repeated tags such as AU and KW become lists. A file is read as UTF-8, with or without a byte-order mark, or as Windows-1252 if it isn’t valid UTF-8, which older reference managers still write.

PubMed’s .nbib file is in what the PubMed User Guide calls PubMed format, often called MEDLINE format. BibTeX is read as Patashnik’s BibTeXing describes it, with @string abbreviations, # joins, and LaTeX accents such as {\"u} turned into ü. CSV follows RFC 4180, so a quoted value can hold commas, line breaks and doubled quotes, and a file separated by tabs or semicolons works too.

What it writes

  • CSV has one row per reference and the columns Title, Authors, Year, Journal, Volume, Issue, Pages, DOI, PMID, Abstract, Keywords, URL and Type. Authors and keywords are separated by semicolons.
  • RIS puts each author on an AU line, the journal in T2, the pages in SP and EP, and the PMID in AN, as OtterSR’s own RIS export does.
  • BibTeX gets a key made from the first author, the year and the first word of the title, such as okafor2021supervised. LaTeX’s special characters are escaped, and accents are kept as UTF-8.

PubMed IDs

Choose “PubMed IDs” as the source, paste PMIDs or DOIs, and fetch the records. Your browser asks NCBI’s E-utilities for them, at most 200 IDs per request and no more than three requests a second, as NCBI asks; only the IDs are sent. The records come back in PubMed format and are read like an .nbib file.

A worked example: RIS to CSV

The converter opens with three made-up records in EndNote’s RIS layout: two journal articles and a book chapter. It reads all three, and the first becomes this row of the CSV:

The first example record, as the converter reads it.

  • Title

    Value
    Supervised resistance training and HbA1c in adults with type 2 diabetes: a randomised trial
    From
    TI
  • Authors

    Value
    Okafor, Ngozi; Lindqvist, Erik; Patel, Ravi K.
    From
    Three AU lines
  • Year

    Value
    2021
    From
    PY
  • Journal

    Value
    Journal of Exercise Medicine
    From
    T2
  • Volume

    Value
    14
    From
    VL
  • Issue

    Value
    3
    From
    IS
  • Pages

    Value
    211-219
    From
    SP 211 and EP 219
  • DOI

    Value
    10.5555/jem.2021.0143
    From
    DO
  • PMID

    Value
    34000001
    From
    AN, since the record names no other database
  • Abstract

    Value
    We randomly allocated 120 adults with type 2 diabetes to 16 weeks of supervised resistance training or usual care.
    From
    AB, two lines joined
  • Keywords

    Value
    Diabetes Mellitus, Type 2; Resistance Training
    From
    Two KW lines
  • Type

    Value
    JOUR
    From
    TY

The DOIs use 10.5555, the prefix kept for examples, so they don’t point at real articles.

What doesn’t carry over

  • Only the standard fields convert. Notes, ISSNs, languages, editors and custom fields are left out, so keep the original file.
  • In RIS, an accession number (AN) only counts as a PMID when the record says it came from PubMed or MEDLINE, or doesn’t say where it came from. Embase and CINAHL use the same tag for their own numbers.
  • Names stay as the source wrote them. PubMed’s short form, “Smith JA”, goes into BibTeX as “Smith, J. A.”, so BibTeX can tell the family name from the initials.
  • EndNote XML isn’t read. Export RIS from EndNote instead.
  • Check the count against what your database exported. If they differ, the list of references it couldn’t read gives the line to look at.

Doing this in OtterSR

OtterSR imports RIS, PubMed .nbib, CSV and EndNote XML files directly. It keeps every column of the file, shows a preview before anything is saved, and flags duplicates within the file and against references already in your review. BibTeX isn’t one of its formats, so convert a .bib file to RIS here first. See how it works.

Frequently asked questions

How do I convert RIS to Excel?

Choose CSV as the output and download it. Excel opens the CSV directly, one reference per row, and keeps accented letters because the file starts with a UTF-8 marker. To convert it back, save it as CSV and choose it here.

How do I convert BibTeX to RIS?

Paste the .bib file or choose it, then pick RIS. LaTeX accents such as {\"o} come out as ö, and the author list is split on “and” into one AU line per author.

What is a RIS file, and how do I open one?

A RIS file is a plain-text list of references. Each line starts with a two-letter tag, such as TY for the type, TI for the title or AU for one author, and each reference ends with ER. Reference managers import it (Zotero’s list of formats includes RIS), and any text editor opens it. To read it as a spreadsheet, convert it to CSV here and open that in Excel.

Is my file uploaded?

No. Your browser reads the file on your device and converts it there, and the references never go into the page’s link. The one exception is PubMed IDs: to fetch those records, the IDs, and nothing else, are sent to NCBI.

Why are some of my references missing?

The converter lists every record it couldn’t read, with its line number and the reason, such as a BibTeX entry with a missing brace or a CSV row with an unquoted comma. Fix that spot and convert the file again.

How to cite this tool

OtterSR. RIS converter. https://www.ottersr.com/tools/ris-converter (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/
  2. Patashnik O. BibTeXing. 8 February 1988. Distributed with BibTeX on CTAN. https://mirrors.ctan.org/biblio/bibtex/base/btxdoc.pdf
  3. Shafranovich Y. Common Format and MIME Type for Comma-Separated Values (CSV) Files. RFC 4180. Internet Engineering Task Force, October 2005. https://www.rfc-editor.org/rfc/rfc4180
  4. Sayers E. A general introduction to the E-utilities. In: Entrez Programming Utilities Help. National Center for Biotechnology Information (US), updated 17 November 2022. https://www.ncbi.nlm.nih.gov/books/NBK25497/
  5. Bibliographic data formats. Zotero Documentation, Digital Scholar. https://www.zotero.org/support/dev/data_formats