Conversor de Properties para JSON

Precisa da conversão inversa?
JSON to Properties Converter

Entrada Properties

1

Saída JSON

Insira dados em Properties para convertê-los em JSON

Os dados convertidos aparecerão aqui

Como converter Properties para JSON

  1. Etapa 1 – Cole os dados Properties

    • Cole o conteúdo do seu arquivo .properties no painel à esquerda.
    • A ferramenta analisa pares chave=valor e ignora comentários que começam com # ou !.
    • Você também pode importar um arquivo Properties do seu computador.
  2. Etapa 2 – Revise a estrutura JSON

    • Chaves com ponto (como app.db.host) são reconstruídas como objetos JSON aninhados.
    • Números e booleanos (true/false) são detectados e tipados corretamente.
    • Verifique se a hierarquia corresponde à estrutura de configuração esperada.
  3. Etapa 3 – Obtenha o JSON

    • Copie o JSON válido para usar em apps web modernos ou serviços Node.js.
    • Baixe como arquivo .json.
Example: Properties to JSON
# Input Properties
app.name=My App
app.version=1.0

// Output JSON
{
  "app": {
    "name": "My App",
    "version": "1.0"
  }
}

Related tools

Perguntas Frequentes

What is Properties format?

Properties files are simple text files used for configuration in Java applications. They contain key-value pairs separated by '=' or ':'.

How are nested objects handled?

Properties files don't support nested objects natively. Nested structures are typically represented using dot notation (e.g., database.host=localhost).

What data types are supported?

The converter automatically detects numbers, booleans (true/false), and keeps strings as-is. Unicode escapes (\uXXXX) are also supported.

How are comments handled?

Lines starting with '#' or '!' are treated as comments and ignored during conversion. Inline comments are not supported.

Can I use multiline values?

Yes. Use a backslash (\) at the end of a line to continue the value on the next line. This is especially useful for long text values.

Is my data secure?

Yes, all data processing happens entirely in your browser. Your data is never sent to any server, ensuring complete privacy and security.

Conversor de Properties para JSON | JSONSwiss