JSON to YAML
Paste JSON or choose a UTF-8 file, then make readable YAML in your browser. Review the result and its reader-compatibility limits before using it elsewhere.
Convert JSON in three steps
- Paste one JSON value or choose a UTF-8 JSON file up to 2 MiB. Objects, arrays and scalar roots are supported; comments and trailing commas are not.
- Choose two or four spaces, then select Convert to YAML. Correct any reported syntax, duplicate-key, Unicode, number or resource-limit error in the original input.
- Review the YAML and visible compatibility note, then copy the complete text or download converted.yaml. A clipped preview does not clip the accepted output.
What the conversion preserves
Objects become block mappings and arrays become block sequences. Source property order is retained in the emitted text, including numeric-looking keys; downstream YAML mappings do not promise ordered application semantics.
Every key and string is double-quoted. Text such as yes, on, 0012 or a date stays text rather than relying on a reader's plain-scalar guessing. Embedded line breaks are represented with escapes without changing the decoded string.
Validated number tokens are copied without binary64 conversion. Large integers, decimal trailing zeros, exponent spelling and negative zero remain in the YAML source. Other readers may still round, overflow, underflow or discard a zero sign.
Duplicate decoded keys are rejected, not overwritten. Empty and prototype-like keys remain ordinary data. Strings retain their Unicode normalization form; unpaired surrogates are refused rather than replaced.
Examples worth checking
The sample name Ada, active true and id 9007199254740993 becomes a quoted name, a boolean and the same integer token. The labels yes and on stay strings, and the note keeps its embedded newline.
The numbers 1e4000, 1e-400, 1E+003, -0 and -0.0 keep their exact token spelling. This is a source-text guarantee, not a promise that every YAML reader can represent those values or signs.
An empty array becomes [], while an empty string becomes a quoted empty string. A standalone false or null is a real result. Repeated decoded names within one object instead produce an error with no partial download.
Important conversion limits
Output follows YAML 1.2 Core data rules, not a universal YAML 1.1 compatibility mode. In particular, exponent-only numeric forms can be interpreted differently by older schemas. Quoted strings do not solve numeric-reader limitations.
This is strict JSON conversion, not JSON5, a template evaluator, deployment validator or schema checker. Source spacing, escape spelling and any unsupported comments are not YAML metadata; no anchors, tags or aliases are generated.
Input is limited to 2 MiB, output to 8 MiB and processing to 15 seconds. Depth, record, decoded-scalar, number-token and exponent limits also apply. Failure, cancellation or timeout leaves no downloadable partial result.
Output uses UTF-8 without a BOM and one final LF. Long quoted keys use YAML's explicit-key form. Copy and download use the complete verified text even when the preview is clipped; another application can still reorder keys or reinterpret numbers.
Local conversion without saved history
A local worker processes the document without tool-added upload, URL import or saved history. Copy and download happen only when requested. This does not certify browser extensions, existing site services or copies you keep.
JSON conversion questions
Sources and references
Related tools
YAML to JSON
Convert one YAML document locally to JSON with exact number text and bounded aliases, then copy or download the complete result.
Open tool — YAML to JSONHTML to Markdown
Convert pasted or local HTML into Markdown, review conversion notes, and copy or download the result.
Open tool — HTML to MarkdownJavaScript Regex Tester
Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.
Open tool — JavaScript Regex TesterMarkdown to HTML
Convert a Markdown draft to an HTML fragment, inspect the source and inert preview, then copy or download it.
Open tool — Markdown to HTMLText Sorter
Sort lines alphabetically by a chosen language or by Unicode code point, keeping duplicates, blank rows and complete line contents.
Open tool — Text SorterRemove Duplicate Lines
Keep the first copy of each exact text line, preserving order, significant spaces and blank rows, then copy or download the result.
Open tool — Remove Duplicate LinesText Diff Checker
Compare two drafts locally, with exact whole-line changes, visible whitespace rules and clear final-newline handling.
Open tool — Text Diff CheckerCase Converter
Convert text to uppercase, lowercase, capitalized words or sentence case with explicit letter rules.
Open tool — Case ConverterHTML Entity Encoder/Decoder
Encode or decode literal HTML references with explicit context, Unicode options and LF output, without parsing or rendering markup.
Open tool — HTML Entity Encoder/DecoderMarkdown Table Generator
Edit a small literal-text table, set alignment and copy GFM Markdown or import tab-separated text.
Open tool — Markdown Table GeneratorQuery String Parser & Builder
Edit ordered URL parameters, retain repeated names and copy a normalized query or HTTP(S) URL.
Open tool — Query String Parser & BuilderURL Encoder & Decoder
Convert a UTF-8 URL component or form value with explicit space and plus rules, then copy or download the result.
Open tool — URL Encoder & DecoderBase64 Encoder & Decoder
Encode UTF-8 text as standard or URL-safe Base64, or decode either format with clear errors and complete text output.
Open tool — Base64 Encoder & DecoderXML Formatter
Check namespace-aware XML 1.0, format or compact locally, and copy or download UTF-8 output.
Open tool — XML FormatterJSON Formatter & Validator
Check JSON syntax, format or minify locally, and copy or download output while preserving original data tokens.
Open tool — JSON Formatter & ValidatorSMS Character Counter & Segment Calculator
See how your message is encoded, where its segments end and what it may cost. Your text stays in your browser.
Open tool — SMS Character Counter & Segment CalculatorSocial Media Character Counter
Check platform-specific limits and split posts without losing text.
Open tool — Social Media Character CounterCharacter Counter
Count characters, words, sentences and paragraphs. Check word density, reading time and UTF-8 size, all in your browser.
Open tool — Character CounterText Size Calculator
Compare text encodings and payload sizes in your browser.
Open tool — Text Size CalculatorPDF Text Cleaner
Fix line breaks and spacing in text copied from a PDF. Preserve your original and review ambiguous hyphens before copying the cleaned text.
Open tool — PDF Text CleanerFancy Text Converter
Convert supported fancy Unicode letters to normal text locally. Keep case, accents, emoji and your original text.
Open tool — Fancy Text ConverterGarbled Text Fixer
Fix garbled text and repair broken accents with a browser-based mojibake fixer. Review each possible UTF-8 reversal before applying it.
Open tool — Garbled Text FixerGmail Clipping Checker
Measure email HTML bytes in UTF-8, compare them with an advisory 102,000-byte Gmail reference, and inspect size contributors locally.
Open tool — Gmail Clipping Checker