All Tools
Categories
XML Tools 64 Email Marketing Tools 55 Import-Export Tools 50 JSON Tools 36 Text Tools 12 Shipping Freight Tools 5 Calculator 4 Marketing Tools 3
About Contact Privacy

JSON to Properties

Convert any JSON document to a flat Java .properties file in one click: dot separators, array styles, full escaping of spaces, colons and Unicode. Download ready. All client-side.

JSON Input
Waiting for input
Properties Output
Values are escaped per the classic properties format: spaces, =, :, #, ! and backslashes are protected, control characters become \\t / \\n / \\r, and non-ASCII text becomes \\uXXXX.

About JSON to Properties

Java, Spring, Android, Maven and a long tail of tooling still configure themselves through plain .properties files — but modern configs live in JSON, YAML and API responses. Bridging the two by hand means flattening nested objects, inventing array keys and remembering which characters need escaping. It is exactly the kind of work a converter should do.

Convert JSON to Properties flattens any JSON document into a valid .properties file with one click. Pick the separator and array style, and the tool produces dotted keys, escaped special characters and Unicode as \uXXXX sequences — ready to paste into application.properties or download directly.

Features

  • Dotted-key flattening: Nested objects become settings.theme.dark style keys.
  • Three array styles: Indexed items.0.name, bracket items[0].name, or joined comma lists.
  • Complete escaping: Spaces, =, :, #, !, backslashes and control characters handled automatically.
  • Unicode output: Non-ASCII text is written as \uXXXX escapes for maximum compatibility.
  • Typed literals: Booleans and numbers keep their literal form.
  • Live preview: The properties output updates as you type.
  • Copy and download: Export the result as a .properties file instantly.
  • Private: All processing happens in your browser; nothing is uploaded.

How to Use

  1. Paste your JSON into the input pane.
  2. Choose a separator — dot for Spring-style keys, underscore for a compact alternative.
  3. Pick the array style that matches your consumer.
  4. Review the live output — escaped characters and dotted keys are applied automatically.
  5. Copy or download the .properties file.

Examples

Example 1 — Spring Boot config. A developer converts a JSON config into application.properties: nested objects become dotted keys, arrays become indexed keys, and Spring Boot binds them back into @ConfigurationProperties structures unchanged.

Example 2 — Legacy integration. A migration team moves settings from a JSON document into a legacy Java client that only reads properties. The converter produces keys in exactly the dotted path form the old code expects.

Example 3 — Android resources. A mobile team converts a JSON of feature flags into properties values consumed by an in-house config loader, with booleans and numbers preserved as typed literals.

Example 4 — Documentation. An architect publishes a sample JSON as a properties snippet in wiki pages, using the join style so simple value lists stay on one readable line.

Benefits

  • Standard-compliant output: Escaping follows the classic properties format, so parsers read it back correctly.
  • Framework-friendly: Dotted keys and indexed arrays bind straight into Spring and similar tooling.
  • Lossless values: Types, Unicode and special characters survive the round trip.
  • Zero data movement: The document is converted locally and never uploaded.
  • Instant results: Live output updates with every keystroke.

Frequently Asked Questions

What is a properties file?
A .properties file is the classic key-value configuration format used by Java, Spring, Maven, Android and many other tools. Each non-comment line holds one setting as key=value, with special characters escaped. This converter flattens nested JSON into exactly that dotted-key form.
How are nested objects converted?
Each level of nesting is joined with the chosen separator (dot by default). A setting like settings.theme.dark becomes the key settings.theme.dark with the boolean value true — the same dotted path form that Spring Boot and similar frameworks read back into nested structures.
How are arrays handled?
Three styles are available. Indexed output uses keys like items.0.name, which most frameworks map back to a list. Bracket style uses items[0].name for an alternative path syntax. Join style writes a single comma-separated value such as tags=alpha,beta,gamma for simple value lists.
What gets escaped?
Everything the format requires: spaces and tabs, the separators = and :, the comment markers # and !, backslashes, plus control characters as \t, \r, \n, \f and \uXXXX for non-ASCII text. The output round-trips cleanly through a standard properties parser.
How are booleans and numbers written?
Values keep their literal form: true, false, integers and decimals are written as-is so the properties file stays human-readable and can be parsed back into typed values by your application.
Is my JSON uploaded anywhere?
No. Conversion happens entirely in your browser. Nothing is uploaded, stored or logged.