Free JSON ↔ YAML ↔ String Format Converter
Paste JSON, YAML, or an escaped JSON string — the tool auto-detects the format and converts it to your target format in one click. Perfect for working with API responses, Kubernetes config, Docker Compose files, and serialized data payloads.
Free Format Converter - JSON, YAML, Escaped String Converter Online
Paste your data - format will be auto-detected.
Paste your data to convertConverted json
Auto-Detect and Convert Between Formats
This intelligent format converter automatically detects whether you paste JSON, YAML, or escaped JSON strings. Simply paste your data and choose your desired output format. Perfect for developers working with APIs, configuration files, or data transformation workflows.
JSON, YAML, and Escaped Strings
Convert seamlessly between JSON (formatted or minified), YAML, and escaped strings for code embedding. Auto-detection means you don't need to specify the input format - just paste and convert. Supports custom indentation, quote styles, and more.
Your Data Never Leaves Your Browser
All format detection and conversion happens locally in your browser using native JavaScript. Nothing you paste in — API responses, configuration data, or other sensitive information — is uploaded, collected, or sent to a server.
Frequently Asked Questions
How do I convert JSON to YAML?
Paste your JSON into the left panel. The tool auto-detects it as JSON and shows YAML in the output. Click Copy to get the YAML. All nested objects, arrays and data types are preserved correctly.
How do I convert YAML to JSON?
Paste your YAML into the left panel. The converter detects YAML by its indentation-based structure and produces clean, properly-quoted JSON. Useful when converting Kubernetes manifests or GitHub Actions files to JSON format.
What is JSON escaping?
JSON escaping wraps a JSON object as a string literal, replacing double quotes with \" and backslashes with \\. The reverse (unescaping) converts that string back to a proper JSON object. Useful when debugging JSON embedded inside other JSON fields.