Favorite places of your favorite city
Home
Add to preferred sources on Google

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.

JSON input

Paste one JSON value or choose a UTF-8 file, then convert it.

Limits: 2 MiB input, 8 MiB output and 15 seconds, with additional structure and number limits.

YAML result

Convert JSON to see the result here.

JSON is processed locally in a worker; this tool does not upload or save the document.

Convert JSON in three steps

  1. 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.
  2. 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.
  3. 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

Original numeric tokens are validated and emitted without binary64 conversion or quoting. Another YAML reader can still round, overflow, underflow or lose negative zero; check the receiving application.

Double quotes make string types explicit. Escapes preserve decoded contents, not the original JSON escape spelling.

Repeated decoded names can otherwise be overwritten or interpreted differently. A literal a and its Unicode-escaped spelling are the same name within one object. Unique empty and prototype-like names are accepted.

Yes. Arrays, strings, numbers, booleans and null are valid roots. Blank input is incomplete, not an implicit null.

No universal YAML 1.1 promise is made. The output uses YAML 1.2 Core; exponent tokens and numeric reader limits can behave differently.

Source property order is retained in the emitted mapping, but another application may reorder it. JSON formatting and escape spelling are replaced by YAML layout.

No. Copy, its complete fallback and converted.yaml contain the whole accepted output. Edits and cancellation invalidate previous output.

No tool-added upload, URL import, saved history or input-bearing share link is used. Strings are data, not instructions to fetch or execute content. This is not a universal security certificate.

Sources and references

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 JSON

HTML to Markdown

Convert pasted or local HTML into Markdown, review conversion notes, and copy or download the result.

Open tool — HTML to Markdown

JavaScript Regex Tester

Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.

Open tool — JavaScript Regex Tester

Markdown 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 HTML

Text Sorter

Sort lines alphabetically by a chosen language or by Unicode code point, keeping duplicates, blank rows and complete line contents.

Open tool — Text Sorter

Remove 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 Lines

Text Diff Checker

Compare two drafts locally, with exact whole-line changes, visible whitespace rules and clear final-newline handling.

Open tool — Text Diff Checker

Case Converter

Convert text to uppercase, lowercase, capitalized words or sentence case with explicit letter rules.

Open tool — Case Converter

HTML 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/Decoder

Markdown Table Generator

Edit a small literal-text table, set alignment and copy GFM Markdown or import tab-separated text.

Open tool — Markdown Table Generator

Query String Parser & Builder

Edit ordered URL parameters, retain repeated names and copy a normalized query or HTTP(S) URL.

Open tool — Query String Parser & Builder

URL 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 & Decoder

Base64 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 & Decoder

XML Formatter

Check namespace-aware XML 1.0, format or compact locally, and copy or download UTF-8 output.

Open tool — XML Formatter

JSON Formatter & Validator

Check JSON syntax, format or minify locally, and copy or download output while preserving original data tokens.

Open tool — JSON Formatter & Validator

SMS 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 Calculator

Social Media Character Counter

Check platform-specific limits and split posts without losing text.

Open tool — Social Media Character Counter

Character Counter

Count characters, words, sentences and paragraphs. Check word density, reading time and UTF-8 size, all in your browser.

Open tool — Character Counter

Text Size Calculator

Compare text encodings and payload sizes in your browser.

Open tool — Text Size Calculator

PDF 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 Cleaner

Fancy Text Converter

Convert supported fancy Unicode letters to normal text locally. Keep case, accents, emoji and your original text.

Open tool — Fancy Text Converter

Garbled 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 Fixer

Gmail 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
View all tools in this category