Conversor de Properties a JSON

¿Necesitas la conversión inversa?
JSON to Properties Converter

Entrada Properties

1

Salida JSON

Ingresa datos en Properties para convertirlos a JSON

Tus datos convertidos aparecerán aquí

Cómo convertir Properties a JSON

  1. Paso 1 – Pega datos de Properties

    • Pega el contenido de tu archivo .properties en el panel izquierdo.
    • La herramienta analiza pares clave=valor e ignora comentarios que empiezan con # o !.
    • También puedes importar un archivo properties desde tu ordenador.
  2. Paso 2 – Revisa la estructura JSON

    • Las claves con puntos (como app.db.host) se reconstruyen como objetos JSON anidados.
    • Se detectan números y booleanos (true/false) y se tipan correctamente.
    • Verifica que la jerarquía coincida con la estructura de configuración esperada.
  3. Paso 3 – Obtén el JSON

    • Copia el JSON válido para usarlo en aplicaciones web modernas o servicios Node.js.
    • Descárgalo como archivo .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

Preguntas frecuentes

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 a JSON | JSONSwiss