Convert RIS Files to CSV: What Changes, What Can Break, and When to Keep RIS
A practical review of RIS-to-CSV conversion: how citation records become spreadsheet rows, what is lost or altered, and how to keep the output readable and usable.
RIS is a tagged plain-text format that reference managers and literature databases use to exchange citation records. CSV is a delimited table format that spreadsheets, scripts and data tools read easily. Converting RIS to CSV turns a list of tagged records into rows and columns. This review covers what that conversion actually does, where meaning or structure can be lost, and when you should keep the original RIS file instead of, or alongside, the CSV.
Evidence note: no specific converter, product or test results were supplied for this review. The guidance below rests on the general structure of the two formats and widely documented spreadsheet behavior. It does not evaluate any particular online or desktop tool.
Is converting RIS to CSV right for your purpose?
Convert to CSV when you want to sort, filter, deduplicate, count or screen citations in a spreadsheet, or feed them into a script or analysis tool. Common examples are screening records for a systematic review, auditing a bibliography for missing DOIs, or sharing a reading list with people who do not use a reference manager.
The main tradeoff is structure. RIS lets a record repeat a field, such as one line per author or keyword. A flat table has to squeeze those repeats into one cell or spread them across numbered columns. Either choice is a convention that other tools may not recognize, so a CSV is a weaker format for moving references back into a reference manager.
Keep RIS, or export both formats, when:
- You are moving references between reference managers, which generally import RIS directly.
- You need to keep every repeated field and its order exactly as exported.
- You plan to convert the data back to a citation format later.
- The recipient only needs to read the list, in which case a formatted bibliography in plain text may serve them better than either file.
What the conversion actually changes
An RIS record is a block of lines. Each line starts with a two-character tag, followed by two spaces, a hyphen and a space, then the value. A record usually begins with TY (reference type) and ends with ER (end of record). For example:
TY - JOUR
AU - Smith, Jane
AU - Lee, Min
TI - An example article title
PY - 2021
KW - citation analysis
KW - bibliometrics
DO - 10.0000/example.123
ER -
A converter parses those lines and writes one row per record, with one column per tag. The DOI and the reference type usually remain as plain values. The text inside fields does not need to change. What changes is the layout: tags become column headers, records become rows, and the ER line disappears because the row boundary takes its place. The example above might become:
TY,AU,TI,PY,KW,DO
JOUR,"Smith, Jane; Lee, Min",An example article title,2021,citation analysis; bibliometrics,10.0000/example.123
Look at the AU cell. The two authors were joined with a semicolon, and the cell is wrapped in double quotes because the names contain commas. Quoting is standard CSV practice. Fields containing the delimiter, a double quote or a line break are enclosed in double quotes, and any quotes inside them are doubled. A converter that skips this step will shift values into the wrong columns.
| Aspect | RIS | CSV |
| Record boundary | ER tag line | One row |
| Field identity | Two-character tag on each line | Column header |
| Repeated fields (authors, keywords) | One line per value, order preserved | Joined in one cell or split across numbered columns |
| Multi-line values (abstracts) | Continuation lines in some exports | Must be quoted to keep line breaks inside the cell |
| Typical use | Exchange between reference tools | Spreadsheets, scripts, data analysis |
Several points need checking with any converter:
- Tag variants: different databases use different tags for the same idea, for example TI or T1 for the title, JO, JF or T2 for the journal, and PY or Y1 for the year. A converter may keep these as separate columns, merge them, or drop the ones it does not recognize.
- Repeated-field separator: if authors or keywords are joined with a semicolon, a value that itself contains a semicolon becomes ambiguous.
- Continuation lines: some exports wrap long abstracts onto untagged lines. A converter that ignores those lines can silently cut the text short.
- Missing ER lines: a file truncated mid-record may merge two records or drop the last one.
Renaming a file from .ris to .csv does not convert it. The content stays tagged lines, and a spreadsheet will show each line as a row in one column. Real conversion requires parsing the tags.
A minimal local conversion script
If you prefer not to upload a reference library to a web service, a short script can do the conversion on your own machine. The Python example below treats each two-character tag as a column, joins repeated values with "; ", appends untagged continuation lines to the previous field, and writes a UTF-8 CSV with a byte-order mark so spreadsheet programs are more likely to detect the encoding. Adjust the tag pattern if your source uses non-standard spacing. This script is a starting point and has not been tested against every database's export.
import csv
import re
TAG = re.compile(r'^([A-Z][A-Z0-9]) - ?(.*)$')
def read_ris(path):
records, current, last_tag = [], {}, None
with open(path, encoding='utf-8-sig') as f:
for raw in f:
line = raw.rstrip('\r\n')
m = TAG.match(line)
if m:
tag, value = m.groups()
if tag == 'ER':
records.append(current)
current, last_tag = {}, None
continue
current.setdefault(tag, []).append(value.strip())
last_tag = tag
elif line.strip() and last_tag:
current[last_tag][-1] += ' ' + line.strip()
if current:
records.append(current)
return records
records = read_ris('library.ris')
columns = list(dict.fromkeys(tag for r in records for tag in r))
with open('library.csv', 'w', newline='', encoding='utf-8-sig') as f:
writer = csv.writer(f)
writer.writerow(columns)
for r in records:
writer.writerow(['; '.join(r.get(tag, [])) for tag in columns])
After converting, compare the number of rows with the number of ER lines in the source file. A mismatch is the quickest sign that records were merged or dropped.
Will the CSV stay readable and usable after sharing?
CSV is plain text, so it copies and pastes reliably as characters. The risks come from how programs interpret it.
- Character encoding: author names with accents or non-Latin scripts can turn into garbled characters if the file is saved in one encoding and opened as another. Confirm that the source RIS and the output CSV use the same encoding, preferably UTF-8, and spot-check names with diacritics after opening.
- Spreadsheet auto-formatting: spreadsheet programs may reinterpret values when opening a CSV. They can strip leading zeros, turn page ranges or partial dates into calendar dates, or show long numeric identifiers in scientific notation. Importing the columns as text, instead of double-clicking the file, avoids most of this. Check identifiers such as DOIs and ISSNs before relying on them.
- Regional delimiters: in some locales, spreadsheet software expects semicolons rather than commas as the field separator, so a comma-delimited file may open as a single column. Using the program's import dialog, or exporting tab-separated values instead, can avoid this.
- Right-to-left text: titles in Arabic, Hebrew or other right-to-left scripts are stored in logical order in both formats. How they appear depends on the program displaying them, not on the conversion.
- Re-importing: a CSV usually cannot be loaded back into a reference manager without mapping columns by hand. Keep the RIS file as the source of record.
For accessibility, a CSV with clear, descriptive column headers is generally easier to navigate in a spreadsheet than raw RIS tags, because the headers name each column. No specific screen reader or spreadsheet combination was tested for this review. If the file is meant for readers using assistive technology, consider renaming the cryptic tags (AU, PY, T2) to plain headers such as Authors, Year and Journal, and test with the tools those readers actually use.
When the recipient only needs to read or cite the references, a formatted plain-text bibliography is usually more readable than either file. Use CSV when the data will be worked on, and RIS when it will be imported.
Choosing a converter: what to verify
No specific tools were evaluated here, so judge any candidate by testing it on a small sample of your own file:
- Does the row count match the record count?
- Are repeated authors and keywords all present, in order, with a separator you can split on later?
- Are abstracts complete, including any wrapped lines?
- Are non-ASCII characters intact?
- Are tags the tool does not recognize kept or dropped, and does it say which?
- Does the output quote fields correctly when they contain commas, quotes or line breaks?
Do not judge an online converter's privacy or data retention practices by how it looks or how it is marketed. If your library contains unpublished work or sensitive notes, read the service's stated policy, or convert locally. Some reference managers can also export a library directly to CSV, which may remove the need for a separate converter. Check your own software's export options.