.properties Formatter
Bring a Java .properties file into one consistent key = value style and even out the spacing around each entry.
Input
Output
What is a .properties File?
A .properties file is a Java configuration file format where each line contains a key=value or key: value pair. It is widely used in Spring Boot, Java EE, and Android applications for externalized configuration.
The .properties Formatter normalizes spacing around separators (= or :), preserves comments starting with # or !, and removes trailing whitespace for cleaner config files. It works great for Apache Ant build files and Maven project configurations too.
How to Use
Paste your .properties content
Bring in an application.properties or similar config, by pasting it on the left or opening it with Upload.
Formats as you type
The formatter normalizes all key-value separators, fixes spacing, and preserves comments.
Copy or download
Every pair now reads key = value, or key : value if you used a colon. Copy takes the whole file; Download always names it application.properties, so rename it when the source was something like messages_de.properties.
Formatting Example
Example: Format a Java properties file
Unformatted input:
app.name=MyApp
app.version=1.0.0
db.host=localhost
db.port=5432
db.name=myapp
server.port=8080Formatted output:
app.name=MyApp
app.version=1.0.0
db.host=localhost
db.port=5432
db.name=myapp
server.port=8080Frequently Asked Questions
What separators are supported?
The formatter supports both = and : as key-value separators, which are both valid in the Java .properties specification.
Are Unicode escape sequences supported?
Yes. Unicode escape sequences like \u0041 are valid in .properties files and are preserved by the formatter.
How are multi-line values handled?
Multi-line values use a backslash (\) at the end of the line to continue on the next line. The formatter preserves these line continuations.
Can I use this to format my Spring Boot application.properties file?
Absolutely! This tool works great for Spring Boot application.properties files. Just paste your config, and the formatter will normalize spacing, clean up indentation-style groupings, and make the file easier to read and review.