Skip to content
HALOWERK

Textwerk

bibtex clean

Own BibTeX parser (braces and quotes, nested braces, # concatenation, @string macros incl. the standard month macros, @preamble kept, @comment skipped, broken entries reported with line numbers instead of aborting). Cleaning: entry types and field names lower case, whitespace collapsed, empty fields removed, page ranges with -- (BibTeX en dash), DOIs without https://doi.org/ or doi: prefix, month names and numbers as month macros (jan . dec), author/editor separators normalised to " and ",.

POST https://text.halowerk.com/v1/bibtex-clean

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
bibtexstringYes
dedupebooleanNo
sortstringNo
remove_fieldsarrayNoField names to drop, e.g. abstract, file, keywords.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "bibtex"
  ],
  "properties": {
    "bibtex": {
      "type": "string",
      "minLength": 1,
      "maxLength": 3000000
    },
    "dedupe": {
      "type": "boolean",
      "default": true
    },
    "sort": {
      "type": "string",
      "enum": [
        "none",
        "key",
        "year",
        "author"
      ],
      "default": "none"
    },
    "remove_fields": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z][\\w:.+-]*$",
        "maxLength": 64
      },
      "description": "Field names to drop, e.g. abstract, file, keywords."
    }
  }
}

Open original schema

Published input example

{
  "bibtex": "@ARTICLE{lecun2015, AUTHOR = {LeCun, Yann and Bengio, Yoshua and Hinton, Geoffrey}, TITLE = {Deep learning}, JOURNAL = {Nature}, YEAR = 2015, PAGES = {436-444}, DOI = {https://doi.org/10.1038/nature14539}, MONTH = {May}}"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub →