.properties Formatter
Format and beautify Java .properties files online. Normalize key=value pairs, fix spacing, and organize configuration properties.
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
Paste the contents of your .properties file into the left editor, or click Upload to load a file.
Instant formatting
The formatter normalizes all key-value separators, fixes spacing, and preserves comments.
Copy or download
Use the Copy button to copy the result, or Download to save it as a .properties file.
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.