BibTeX and RIS Converter
Operator: Abdulla Al Fahad. How tools are built and checked
Two BibTeX entries cite the same paper: smith2020 with the DOI 10.1000/xyz123 and smithetal2020b with 10.1000/XYZ123. Imported into a reference manager as they are, they become two records and two numbers in the bibliography. The converter compares DOIs without regard to case, finds the pair, and keeps the fuller entry.
It reads and writes BibTeX, BibLaTeX, RIS, CSL-JSON, EndNote XML and CSV through one neutral record, so any format can become any other. The list is checked on the way through, with citation keys filled in where they are missing and a report of what would fail an import.
Key features
- BibTeX and BibLaTeX reading with @string macros, # concatenation, braces or quotes, and BibLaTeX names such as journaltitle, location and date
- RIS reading and writing with TY types, repeated AU and KW lines, SP and EP page ranges and DA or PY dates
- CSL-JSON in and out, with date-parts, literal organisation names and particles
- EndNote XML in and out for the common reference types, titles, contributors, dates, pages and URLs
- A CSV with 28 fixed columns, matching column headings such as Author, Publication Title or Date
- LaTeX accents decoded to Unicode on the way in and, for BibTeX, encoded back as {\'e} style on the way out; in LaTeX output mode a literal ~ and ^ become \textasciitilde{} and \textasciicircum{}
- Duplicate detection by DOI, by identical title and year, and by title word overlap; optional removal that keeps the fullest entry
How fields map between the six formats
Entries are read into one record with BibTeX field names, the title keeps its {protective braces}, and authors are split into family and given names, with a name wholly in braces treated as an organisation. Month macros such as may become numbers, page ranges get an en dash, DOIs lose any https://doi.org/ prefix, and 'and others' in an author list adds a warning because the list is incomplete.
Entry types are mapped in both directions: article, book, incollection, inproceedings, phdthesis, mastersthesis, techreport and unpublished have their own equivalent in each format. A web page (online) is a BibLaTeX type, so BibTeX output writes it as misc with the address in howpublished. Anything else becomes misc in BibTeX, GEN in RIS, document in CSL-JSON and Generic in EndNote. The mapping table on the page shows the field names side by side.
Writers sanitise what they print. Citation keys are cut to letters, digits and the characters BibTeX accepts, entry types to lower-case letters, unmatched braces are dropped, and line breaks and control characters are collapsed to spaces so that one field cannot end a RIS record or open a new BibTeX entry. In the CSV output, a cell that starts with = + - or @ gets a leading apostrophe, so a spreadsheet does not read it as a formula.
How it works
Keys are made as the first author's family name in ASCII lower case, the year, and the first title word that is not a, an, the, on, of and similar, capitalised: smith2020Dna. A repeated key gets a, b, c after it. You can keep every key, fill empty and duplicated keys only, or rebuild them all.
Fuzzy duplicates compare the title words of entries from the same year (or with no year) when their first authors agree or one is missing; a Jaccard overlap of 0.85 or more joins them. Comparison stops after three million pairs on very large lists and says so.
Common use cases
- A thesis writer moves 400 references from a reference manager's RIS export into a BibTeX file for the LaTeX template and gets accents as {\'e} so an old pdfLaTeX build compiles.
- A librarian imports a department's .bib file into CSV to review missing years and DOIs in a spreadsheet, then converts it back.
- A group merges three team members' libraries and removes 37 duplicates found by DOI and by title.
- A journal editor needs CSL-JSON for a citation processor and runs the validation tab to catch invalid DOIs and pages before it goes in.
How to use this tool
- Paste references or open a file; the format is detected, or choose it.
- Pick the output format, how to treat keys, and whether to remove duplicates.
- Read the entries, duplicates and validation tabs, then download or copy the result.
Example
A .bib file with four entries; the first two cite the same DOI. Read as BibTeX, convert to RIS, remove duplicates
@article{smith2020,
author = {Sm{\"i}th, John A. and M{\"u}ller, K{\'a}rl},
title = {The {DNA} of cats: a {Bayesian} study},
journal = {Journal of Feline Science},
year = 2020, month = may, volume = {12}, number = {3}, pages = {101--110},
doi = {10.1000/xyz123}
}
@article{smithetal2020b,
author = {Smith, John A. and Muller, Karl},
title = {The DNA of Cats: A Bayesian Study},
journal = {J. Feline Sci.},
year = 2020, doi = {10.1000/XYZ123}
}
@book{doe1999,
author = {Doe, Jane},
title = {A Great Book About Things},
publisher = {Acme Press}, address = {Dhaka}, year = {1999},
isbn = {0-306-40615-2}
}
@inproceedings{roe21,
author = {Roe, Richard}, title = {Mapping Streets}, booktitle = {Proc. of Urban Data}, year = {2021}
}Readout and RIS output
4 entries read, 3 written, 1 duplicate group (same DOI), 0 errors, 0 keys changed. The RIS output holds JOUR smith2020 with AU Smïth, John A. and AU Müller, Kárl, PY 2020/05/, SP 101 and EP 110, DO 10.1000/xyz123; BOOK doe1999 with SN 0-306-40615-2; and CPAPER roe21 with T2 Proc. of Urban Data.Edge cases to watch
RIS has no organisation flag. A name with a comma is read as Last, First. A name with no comma is read as an organisation when it has four or more words, and an organisation is written with a trailing comma (World Health Organization,) so it reads back as one name. Other comma-free names are split as First Last and noted, so an organisation of three words in a CSV cell should be wrapped in braces, {World Health Organization}, to keep it whole.
EndNote XML support is basic: common reference types and fields are covered, and custom fields and EndNote's own style data are not.
Writing LaTeX accents covers Latin letters and common punctuation. Characters such as Greek or Cyrillic stay as UTF-8 and the page lists them.
- Choose 'Fill empty, fix duplicates' for keys when a manuscript already cites some keys. 'Regenerate all' changes every key, so existing \cite commands stop matching.
- Wrap an acronym in braces in the title, {DNA}, so BibTeX styles keep its capitals; the braces are kept for BibTeX and BibLaTeX and removed for the other formats.
Common errors and how to fix them
- "The format could not be detected."
- The text has no @entries, TY tag, JSON or XML records. Choose the input format by hand, or check that a CSV has a header row.
What the validation tab checks
Each entry is checked for the fields its BibTeX type requires (an article needs author, title, journal and year, a book needs author or editor, title, publisher and year), duplicate and unusual keys, a year that is not four digits or falls outside 1400 to next year, a DOI that does not look like 10.xxxx/suffix, a page range that is not 12-34, an ISBN whose check digit fails, an ALL CAPS title and a URL without http or https.
Frequently asked questions
Will my own citation keys survive a round trip?
Keys are kept in BibTeX, RIS (ID), CSL-JSON (id), EndNote (label) and CSV (key). A format or tool downstream may rewrite them on import, which is outside this page.
How does it differ from the citation generator?
The citation generator builds formatted APA, MLA, Chicago and Harvard references from a form. This page does not format citations; it moves whole reference lists between file formats and checks them.
Why are two entries not flagged when they look alike?
Fuzzy matching needs the same year (or a missing one), compatible first authors and 85 percent of the title words in common. Different years or a retitled version are left alone on purpose, since they may be distinct works.
Is a duplicate removed without me seeing it?
No. Removal only happens when the box is ticked, and the Duplicates tab lists each group with its reason first.