Citation.js (GitHub, NPM) converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.


  • Conversion from: Wikidata, Wikidata IDs, BibTeX, Bib.TXT and BibJSON
  • Conversion to: CSL-JSON, BibTeX, Bib.TXT, and formatted citations
  • Extensive sorting (more coming soon!)
  • Version control
  • Support for Node.js, browser, and has a CLI
  • MIT licensed

Related projects

  • citation.js-form (formerly known as jquery.citation.js), a tool to make a webform for a more human-friendly use of citation.js.
  • citation.js-showdown , an extension to the Showdown markdown parser.
  • citation.js-replacer , a simple HTML API for Citation.js, to use citation.js to format citations on your page as easy as possible.


const Cite = require('citation-js')

const data = await Cite.async('Q30000000')

  format: 'string',
  type: 'html',
  style: 'citation-apa',
  lang: 'en-US'