Zero Signup ToolsFree browser tools

Converter Tools

Properties to JSON Converter

Convert Java .properties files to JSON in your browser. Dotted key nesting, line continuations, Unicode escapes, and JSON to .properties.

1,025 chars

Property entries

21

Nested keys

19

Output bytes

1,196

Options

JSON indent

Value typing

Key nesting

Nesting separator

Default is the dot. Use any single character or short string.

Parsed entries

KeyValueLine
spring.application.nameorder-service3
spring.profiles.activeproduction4
server.port80807
server.servlet.context-path/api8
server.compression.enabledtrue9
spring.datasource.urljdbc:postgresql://db.example.com:5432/orders12
spring.datasource.usernameapp13
spring.datasource.passwords3cr3t14
spring.datasource.hikari.maximum-pool-size2015
spring.jpa.hibernate.ddl-autovalidate18
spring.jpa.show-sqlfalse19
logging.level.rootINFO22
logging.level.org.springframework.webDEBUG23
logging.file.name/var/log/order-service.log24
welcome.messageHello, world!27
error.requiredThis field is required.28
support.contactsupport@example.com29
descriptionA short multi-line description that spans several physical lines.32
greek.letterα37
my keyvalue with spaces and = signs40
url.pathhttps://example.com/path?q=1&r=241

Lint warnings

No warnings. Input parsed cleanly.

Spec: the parser followsjava.util.Properties.loadbehavior for separators, comments, escapes, and line continuations.

Privacy: the file you paste, including any embedded passwords or tokens, is parsed locally and never uploaded.

Tips

Spring Boot config to JSON

Use .properties to JSON with Nest by separator and the Auto typing mode. You get the exact same shape Spring uses when it loadsapplication.propertiesagainst@ConfigurationPropertiesclasses.

i18n ResourceBundles

Keep nesting off, leave typing on Strings only, and you get a flat{ "key.path": "translation" }object that i18next, FormatJS, and most front-end translation libraries can ingest directly.

Multi-line values

End a line with a single backslash to continue the value on the next physical line. Leading whitespace on the continuation line is stripped, matching Java behavior.

JSON back to .properties

Switch to JSON to .properties, pick Indexed keys if your app reads arrays aslist[0]-style entries (Spring), or JSON-encoded value when you would rather keep arrays in a single line.

How to use

  1. Pick .properties to JSON or JSON to .properties from the segmented control at the top, or click Swap direction to feed the current output back as the next input.
  2. Paste your .properties file (or JSON object) into the input area. The Load sample button drops in a representative file you can edit. Comments using # or ! are ignored.
  3. For .properties to JSON, choose JSON indent, whether scalar values are auto-typed into numbers and booleans, and whether dotted keys like spring.datasource.url expand into a nested object or stay as flat string keys.
  4. For JSON to .properties, pick the key/value separator (=, :, or space), choose between indexed keys or a JSON-encoded value for arrays, and turn on Escape non-ASCII for legacy ISO 8859-1 ResourceBundles.
  5. Read the result on the right, watch the entry, nesting, and byte counts update, then use Copy output to grab the converted file. Warnings flag duplicate keys, bad Unicode escapes, and key/object collisions with the original line number.

About this tool

Properties to JSON Converter parses Java .properties files and emits a JSON object you can drop into a modern toolchain, a config service that does not speak Java, or a front-end translation library that needs a flat key/value bundle. Paste any .properties file (a Spring Boot application.properties, a log4j or log4j2 config, a Kafka producer or consumer config, a Hibernate persistence config, a Gradle gradle.properties, a Tomcat server.properties, a localization ResourceBundle, or any custom application file) and the tool produces a structured document where dotted keys like spring.datasource.hikari.maximum-pool-size nest one level per dot. The parser implements the rules in java.util.Properties.load: lines starting with # or ! are comments, the key terminates at the first unescaped =, :, or whitespace, surrounding whitespace around the separator is trimmed, blank lines are ignored, and a trailing backslash on a line continues the value on the next physical line with leading whitespace stripped. Backslash escapes inside keys and values cover the full Java spec: \t, \n, \r, \f, \\, \=, \:, \#, \!, \ (escaped space), and \uXXXX Unicode escapes. Duplicate keys behave like the JVM (last value wins) and earlier values are surfaced as lint warnings with the original line numbers so you can see what got overridden. Nesting is configurable: keep the dot as the separator (the default for Spring), pick a different character, or turn nesting off entirely to get a flat object whose keys still contain literal dots (the shape i18next, FormatJS, and most front-end translation libraries expect). Value typing is configurable too: leave everything as strings (safe for round-tripping) or auto-type numbers, booleans, and null. The reverse direction takes a JSON object whose values are primitives, arrays, or nested objects and writes a clean .properties file with your choice of key/value separator (=, :, or space), array handling (indexed keys list.0, list.1 for Spring-style binding, or a single JSON-encoded line), Unicode-escape encoding for non-ASCII characters (legacy ISO 8859-1 ResourceBundles), and an optional header comment. Useful for migrating legacy Java apps to a JSON-based config, exporting translation bundles to front-end teams, diffing two configs by viewing them as JSON, sanity-checking application.properties before a release, and turning a sample .properties snippet in documentation into a JSON object for an SDK. Everything runs locally in your browser, so the configurations you paste here, including any embedded passwords, JDBC connection strings, or signing keys, never leave your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsConverter Tools