Bibliography Sorter

Sort BibTeX entries by key, author, year, or title.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste BibTeX and choose how to sort: citation key, first-author surname, year or title. The sorted entries are returned in the standard layout.

How to use

1
Step 1
Paste your BibTeX.
2
Step 2
Choose key, author, year or title.
3
Step 3
Press Sort and copy the result.

How it works

Sorting makes large.bib files easier to scan and reduces merge conflicts in version control. The author sort uses the surname of the first author in lower case. Note that LaTeX orders the printed bibliography by your style (.bst), not by the order in the.bib file.

sortBy ∈ { key, author, year, title }

Worked example

Sort by author

Input
@article{z, author={Zed, A}, year={2021}} and @article{b, author={Adams, B}, year={2019}}
Output
b (Adams) first, then z (Zed)
Walkthrough
The first-author surnames adams and zed are compared alphabetically.

Limitations

  • File order does not control the order printed in your PDF.
  • Entries lacking the sort field are placed by their empty value.

Questions

Does sorting change how references print in LaTeX?
No, that depends on the bibliography style.
How is author sorted?
By the first author's surname, lower-cased.
Can I sort by year?
Yes, choose year as the sort field.

Features

  • Four sort fields
  • Standard layout
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Learn JSON - Full Crash Course

    freeCodeCamp.org

    Structured citation data often serializes as JSON/CSL.

    Watch on YouTube
  • Finding mean, median, and mode

    Khan Academy

    Stats show up in research methods coursework.

    Watch on YouTube