Conversor de YAML a JSON
Convierte YAML a JSON en tu navegador. Admite mapas anidados, listas, cadenas, números y booleanos.
Cómo usar esta herramienta
- 1
Paste or type your YAML into the input box, using spaces (not tabs) for indentation.
- 2
Read the pretty-printed JSON that appears below the box as you type.
- 3
If a red error message shows instead, check your indentation and remove unsupported syntax.
- 4
Select and copy the JSON output to paste into your config, code, or API client.
¿Qué es el Conversor de YAML a JSON?
YAML y JSON son formatos de intercambio de datos que pueden representar las mismas estructuras. YAML es más legible para las personas (sin llaves ni comillas), pero JSON es más universalmente analizable. Convertir entre ellos es habitual para archivos de configuración (GitHub Actions, Docker Compose) cuando necesitas alimentar datos en herramientas que solo aceptan JSON.
Casos de uso comunes
Quickly turning a small docker-compose.yml or GitHub Actions snippet into JSON to inspect its structure.
Converting a hand-written config block into JSON to paste into a tool or API that only accepts JSON.
Checking how YAML scalars like true, 123, or ~ get typed once they become JSON values.
Sanity-checking indentation in a YAML fragment by seeing whether the nesting comes out as you expect.
Generating seed JSON fixtures for tests from a more readable YAML draft.
Teaching or learning the mapping between YAML structures and their JSON equivalents.
Preguntas frecuentes
¿Se admiten las funciones avanzadas de YAML?▼
Herramientas relacionadas
Decodificador de JWT
Decodifica JSON Web Tokens (JWT) al instante. Se ejecuta en tu navegador: los tokens nunca salen de tu dispositivo, seguro de usar con secretos de producción.
Formateador y Validador de JSON
Formatea, valida y minifica JSON en línea. Funciona por completo en tu navegador: tus datos nunca salen de tu dispositivo.
Formateador de XML
Formatea y embellece documentos XML. Útil para SOAP, sitemaps, feeds RSS y archivos de configuración.
Codificador y Decodificador de Base64
Codifica cadenas a Base64 o decodifica Base64 a texto. Respeta tu privacidad: se ejecuta en tu navegador.
Codificador y Decodificador de URL
Convierte texto a codificación segura para URL (codificación por porcentaje) y viceversa. Útil para cadenas de consulta, redirecciones y flujos OAuth.
Codificador y Decodificador de Entidades HTML
Convierte caracteres especiales a entidades HTML (&, <, etc.) y viceversa. Útil para incrustar texto en HTML de forma segura.