Formatteur de fichier de propriétés Java
Guide
Formatteur de fichier de propriétés Java
This tool formats Java .properties files using the same rules the JDK uses to load them. It accepts =, :, or whitespace as a separator, recognises both # et ! comment styles, and joins backslash continuation lines into clean single-line key/value pairs. Use it on application.properties, logback.properties, ResourceBundle messages_*.properties, or any plain Java config you need to tidy up.
Comment utiliser
- Paste your raw
.propertiescontent into the input box (or click Essayez un exemple). - Pick a separator style:
=,:, or preserve whatever the original line used. - Choose spacing around the separator and a comment style (
#,!, or preserve). - Toggle options to sort keys, drop duplicates (keeping the last occurrence), align keys to a common width, trim trailing whitespace, or collapse repeated blank lines.
- Copy the formatted output, or download it as a
.propertiesfile. The validation panel flags duplicate keys and malformed\uXXXXescapes.
Caractéristiques
- Spec-correct parsing – handles
=,:, whitespace separators, and backslash line continuations the same wayjava.util.Propertiesdoes. - Comment style normalization – convert all comments to
#ou!, or preserve each line’s original prefix. - Sort and dedupe – alphabetise keys and drop earlier duplicates so the last occurrence wins (matching JVM load order).
- Key alignment – pad keys to equal width for visually clean diffs and reviews.
- Whitespace cleanup – trim trailing whitespace and collapse runs of blank lines.
- Validation – warns on duplicate keys and reports invalid
\uXXXXunicode escapes. - Live updates – output and validation refresh as you type or change options.
FAQ
Installez nos extensions
Ajoutez des outils IO à votre navigateur préféré pour un accès instantané et une recherche plus rapide
恵 Le Tableau de Bord Est Arrivé !
Tableau de Bord est une façon amusante de suivre vos jeux, toutes les données sont stockées dans votre navigateur. D'autres fonctionnalités arrivent bientôt !
Outils essentiels
Tout voir Nouveautés
Tout voirMise à jour: Notre dernier outil was added on Mai 3, 2026
