YAML / JSON

Clean up your config.
Catch every error.

Format, validate, and convert YAML or JSON without leaving your browser. Your source stays local, from first paste to final copy.

01 / Transform

Format and validate

Browser only
Input
01

Source

Auto detect
9 lines · 169 characters Tab inserts spaces
02

Formatted output

YAML
Waiting for valid input
Ready when you are

Paste YAML or JSON, then format it or press Ctrl/ + Enter.

02 / Why it helps

Configuration, made legible.

01

Validate precisely

Find malformed mappings, arrays, strings, and indentation with a clear line and column whenever the parser can identify them.

02

Convert either way

Turn YAML into JSON or JSON into YAML while keeping nested objects, arrays, booleans, numbers, and null values intact.

03

Keep data private

Parsing and formatting happen locally. Nothing is uploaded, stored, or added to a URL.

03 / Try an example

See clean configuration in both formats.

Load either example into the editor to validate it, change the indentation, sort its keys, or convert it to the other format.

YAML

A readable service configuration

service:
  name: catalog-api
  enabled: true
  ports:
    - 8080
    - 8443
  environment:
    LOG_LEVEL: info
JSON

The same data with explicit syntax

{
  "service": {
    "name": "catalog-api",
    "enabled": true,
    "ports": [8080, 8443],
    "environment": {
      "LOG_LEVEL": "info"
    }
  }
}
04 / Fix common errors

Why YAML or JSON validation fails.

Most syntax failures come from a small set of punctuation and indentation mistakes. The validator points to the closest known line and column so you can correct them quickly.

YAML indentation

Use spaces and align sibling values

YAML uses indentation to define structure. Do not mix tabs and spaces, and keep values at the same level aligned. The editor’s Tab key inserts spaces automatically.

YAML strings

Quote ambiguous values

Quote strings containing a colon followed by a space or a hash preceded by a space. Otherwise YAML may interpret the value as a mapping or comment.

JSON punctuation

Use double quotes and exact commas

JSON requires double-quoted property names and strings. Separate items with commas, but do not leave a trailing comma before a closing brace or bracket.

JSON structure

Match every brace and bracket

Objects use braces and arrays use brackets. A missing or extra closing character can make the remainder of an otherwise valid document fail to parse.

Multiple documents

Separate YAML documents explicitly

Place --- on its own line between YAML documents. When converted to JSON, a multi-document stream becomes a JSON array containing each document.

Private by design

Your configuration stays local

Validation and conversion happen in this browser. Native Cube does not upload, log, or retain the YAML and JSON you paste.