About CSL Style Formatter

The CSL Style Formatter reformats Citation Style Language (CSL) styles according to our repository standards and can be used to prepare your style for submission. For best results, first make sure your style validates against our CSL style validator.

To use the tool, either paste your XML style code into the editor window above or click the "Browse" button to select a style file on your computer, click the "Reformat" button, and copy the reformatted style to your destination of choice.

Formatting changes include:

  • Standard indentation
  • Escaping of certain characters that are hard to identify by eye, like non-breaking spaces and the various dashes
  • Standard ordering the child elements of <info/>
  • Standard ordering of attributes on <style/> and <link/> elements