.PROPERTIES

PROPERTIES File

Java Properties File
Ask a question
QUICK ANSWER

A .properties file is a plain-text configuration file used by Java applications to store settings as key=value pairs and localized UI strings. Open it with any text editor - Notepad++ or VS Code on Windows, TextEdit on Mac, gedit or nano on Linux. Back up the file before editing because a bad value can stop the Java application from starting.

Developer: Sun Microsystems / Oracle (part of the Java platform) Category: Settings Files Open standard MIME: text/plain
OPENS ON Windows macOS Linux
Related: .ICA · .DS_STORE · .WMZ · .CFG

On this page

19k+ extensions indexed
Last reviewed Jun 30, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the PROPERTIES file format?

Files with the .properties extension are used by Java technology to store properties and configurable application parameters. They may also include strings for internationalisation and localisation, making them a standard format for i18n message bundles in Java applications and frameworks such as Spring.

Each line in a .properties file holds a single parameter. Each parameter is stored as a pair of strings - the first contains the name of the parameter (called a key) and the second contains its value. Keys and values are separated by =, :, or whitespace. Lines starting with # or ! are treated as comments and ignored by the parser. A trailing backslash (\) at the end of a line continues the value on the next line.

By default, .properties files are encoded in ISO-8859-1 (Latin-1). Non-Latin characters must be written as \uXXXX Unicode escape sequences - unlike YAML files or XML files, which natively support UTF-8. Java 9 introduced support for loading .properties files in UTF-8 when an explicit charset is provided.

Editing .properties files

.properties files can be freely modified with any text editor. However, more advanced tools for file editing are also available, equipped with additional functions not supported by regular text editors. Using these tools enables:

  • data validation
  • creating new keys
  • synchronising names of keys across locale files
  • automatic, two-way conversion of non-ASCII symbols to and from \uXXXX escapes
  • integration with Eclipse

Additional information

.properties files are accessed in Java applications through the java.util.Properties class. They are typically bundled as classpath resources inside JAR or WAR archives and loaded at runtime - there is no fixed default directory for them. The .ini format serves a similar role in non-Java environments, while .env files are commonly used in modern containerised deployments.

Security & safety

RISK: LOW

A .properties file is plain text and cannot execute code, so opening one is safe. Two real concerns: (1) they frequently contain secrets - database passwords, API keys, connection strings - so don't paste them into untrusted online tools or commit them to public repos. (2) Editing risk: a typo, wrong encoding (saving UTF-8 where ISO-8859-1 is expected can mangle accents), or a stray character can stop the Java app from starting. Always back up the original before changing a value.

Format details

in a nutshell
FULL NAMEJava Properties File
DEVELOPERSun Microsystems / Oracle (part of the Java platform)since 1996 (Java 1.0, java.util.Properties)
MIME TYPEtext/plain
TYPEPlain-text key/value configuration (ISO-8859-1 encoded by default)
STANDARDOpen · royalty-free

Programs that open PROPERTIES files

Windows4 apps
Eclipse IDE Open-source Open inside a Java project for a dedicated .properties editor with key/value table view and i18n tooling.
Windows Notepad Built-in Right-click > Open with > Notepad for a quick look or small edit. Fine for plain ASCII keys.
Notepad Open-source Right-click > Edit with Notepad++. Shows line numbers and lets you set the encoding (ISO-8859-1 or UTF-8) so escapes/accents display correctly.
Visual Studio Code Free Open the file; install the ' resource-bundle' / properties extension for key=value highlighting and duplicate-key warnings.
macOS3 apps
TextEdit Built-in Open, then Format > Make Plain Text before saving so it stays plain .properties (not RTF).
Eclipse IDE Open-source Open within a Java project for the dedicated properties/resource-bundle editor.
Visual Studio Code Free Open to edit with highlighting; safer than TextEdit for structured config.
Linux3 apps
Vim Open-source Edit in the terminal: vim app.properties - standard on servers. Back up first.
GNOME Text Editor / gedit Open-source Open to read/edit; default GNOME editor handles key=value text fine.
Visual Studio Code Free Open for editing with properties highlighting.

Technical details

deep spec
Default encodingISO-8859-1 (Latin-1)
UTF-8 supportAvailable from Java 9+ via explicit charset argument to Properties.load()
Non-ASCII charactersMust be represented as \uXXXX Unicode escape sequences when using ISO-8859-1 encoding
Key-value separator=, :, or unescaped whitespace - the first occurrence splits key from value
Comment syntax# or ! at the start of a line
Line continuationA trailing \ joins the next line into the current value; leading whitespace on the continuation line is stripped
Whitespace trimmingLeading whitespace before keys and between separator and value is automatically stripped
Duplicate key behaviourPermitted by the parser; the last definition silently overwrites earlier ones
Java API classjava.util.Properties
MIME typetext/plain
Magic bytes / signatureNone - plain text with no binary header; identified by file extension and key=value line structure
Supported escape sequences\n, \t, \r, \\, \ (escaped space in keys/values), \uXXXX
Developer / maintainerSun Microsystems / Oracle (part of the Java platform)
Common deploymentBundled as classpath resources inside JAR or WAR archives; loaded at runtime via getResourceAsStream()
Ecosystem adoptionUsed by Java SE, Spring Framework, Android (legacy), Apache Ant, Maven, and many third-party tools
Released1996 (Java 1.0, java.util.Properties)
Open standardYes · royalty-free
Specificationdocs.oracle.com

PROPERTIES conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PROPERTIES files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about PROPERTIES files.

Frequently asked questions

How do I open a .properties file?
With any text editor - Notepad++ or VS Code on Windows, TextEdit (plain text) on Mac, gedit/vim on Linux. It's a plain-text key=value file, so no special software is needed.
What program creates .properties files?
Java applications, via the java.util.Properties class. They're everywhere in Java/Spring projects (application.properties) and for translations (ResourceBundle files like messages_en.properties).
Why does my .properties file show \u0041-style codes instead of letters?
By the Java spec the file is read as ISO-8859-1, so non-Latin characters are stored as \uXXXX Unicode escapes. They are correct - a properties-aware editor or the running app decodes them back to real characters.
Can I edit a .properties file in Notepad?
Yes for simple edits. Use # for comments and key=value lines, keep one setting per line, and don't change the encoding unless you know what the app expects. Back up first - a bad value can break startup.
What's the difference between .properties and .yml in Spring Boot?
Both configure the same app. .properties is flat key=value (server.port=8080); .yml is nested YAML (server:\n port: 8080). Spring reads either; YAML is preferred for hierarchical or list settings.
Where is application.properties located?
In a Spring Boot app it's usually under src/main/resources in the source tree, and bundled inside the JAR/WAR at runtime. You can override it with an external file next to the JAR or via the spring.config.location setting.

References

1Oracle - java.util.Properties (API)docs.oracle.com
2Oracle - The Properties class (Java Tutorial)docs.oracle.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.RPMSGRestricted Permission Message
6.MDMarkdown Document
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.PRO6XProPresenter 6 Bundle File
10.PRDXSoftMaker Presentations Document

Related extensions

.ICACitrix Independent Computing Architecture file
.DS_STOREmacOS Finder Desktop Services Store (.DS_Store)
.WMZWindows Media Player Skin
.CFGConfiguration File
.LICLicense File
.CONFConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z