bibtex-tidy is a utility for cleaning and formatting BibTeX bibliography files. It brings inconsistently formatted references into a standardised layout, making bibliographies easier to read, maintain and share.
BibTeX files obtained from publishers, academic databases and reference managers often differ in their field ordering, capitalisation and spacing. bibtex-tidy addresses these inconsistencies without requiring references to be edited individually.
The program can be run from the command line or integrated into automated workflows. A browser-based interface is also available. Its focus is on cleaning existing bibliography data rather than collecting research papers or managing a reference library.
This is free and open source software.
Key Features
- Configurable indentation, field alignment, blank lines and value wrapping.
- Sort bibliography entries by citation key, author, year or other fields, with ascending and descending ordering.
- Reorder fields within entries using a predefined order or custom field list.
- Detect duplicate references using citation keys, DOIs, abstracts or similarities between authors and titles.
- Merge duplicate entries, with options to retain, combine or overwrite field values.
- Remove empty or duplicate fields, omit specified fields and strip comments.
- Generate citation keys from author names, publication years and titles, with support for configurable patterns.
- Normalise month values, convert numeric fields and adjust capitalisation.
- Convert between LaTeX character escapes and Unicode, and percent-encode invalid URL characters.
- Control brace handling, including preserving capitalisation in selected fields.
- Write formatted output to another file or standard output. The command-line tool overwrites input files by default unless instructed otherwise.
- Integrate with Git pre-commit hooks to format bibliography files automatically.
- JavaScript and TypeScript API for integration into other applications.
Website: github.com/FlamingTempura/bibtex-tidy
Support:
Developer: FlamingTempura
License: MIT License
Related Software
| Terminal-Based Bibliography Tools | |
|---|---|
| coBib | Simple, console-based bibliography management tool |
| Rebiber | Replaces unofficial BibTeX references with official records |
| papis | Extensible command-line based document and bibliography manager |
| bibiman | TUI for fast and simple interaction with a BibLaTeX database |
| bibtex-tidy | Cleans, sorts and formats BibTeX bibliography files |
| Hayagriva | Rusty bibliography management |
| bibman (Haskell) | CLI/TUI bibliography manager |
| pubs | Bibliography on the command line |
| BibMan | TUI bibliography manager |
| Xapers | Personal journal article management system |
| papers | Command-line tool to manage bibliography |
| Gorae | Terminal-based library manager for PDF and EPUB collections |
| CiteBib | Generate a Bibtex or LaTeX bibliography |
| bibclean | BiBTeX and Scribe bibliography prettyprinter and syntax checker |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |



Please read our Comment Policy before commenting.