$devtoolkit.sh/tools/properties-formatter

Properties Formatter

Format and sort Java .properties files with aligned equals signs.

$properties input
0 chars1 lines
$formatted[READY]
0 chars1 lines

Related Tools

FAQ

What format does this tool expect?
Standard Java .properties format: each line is a key=value or key: value pair. Lines starting with # or ! are treated as comments and preserved. Multi-line values joined with backslash continuation are supported.
Does sorting change the behavior of my application?
No. Java's Properties.load() method reads all key-value pairs regardless of their order in the file. Sorting is purely cosmetic and makes the file easier for humans to scan.
Are comments preserved?
Comments directly preceding a property entry are kept attached to that property when the file is sorted, so your documentation stays with the relevant key.

Properties Formatter parses Java .properties files, strips leading and trailing whitespace from keys and values, sorts entries alphabetically, and aligns all equals signs to a consistent column for easy reading. Comments starting with # or ! are preserved in place. Blank lines between sections are collapsed to a single blank line. All processing runs in your browser.

/tools/properties-formatterv1.0.0