Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

YAML and JSON Converter

YAML and JSON Converter turns YAML into JSON, or JSON into YAML, with a button to switch direction. It runs in your browser, so nothing is uploaded.

How to use YAML and JSON Converter online

  1. Choose the direction. The page starts with YAML to JSON. Press Switch direction for JSON to YAML.
  2. Paste the text. Put your YAML or JSON in the box.
  3. Read the result. The converted text appears at once, or a message tells you what is wrong.
  4. Copy. Copy the result.

Why use this free YAML and JSON Converter

  • YAML to JSON and back
  • Plain-words errors
  • Two or four space indent
  • YAML 1.2 rules
  • One document at a time
  • Nothing sent, nothing stored

Two ways to write the same data

YAML and JSON can hold the same kinds of data: objects, lists, text, numbers, true or false, and null. JSON is strict and uses braces and quotes. YAML uses indentation and is easier to read, so it is common in configuration files. This tool converts one into the other.

YAML to JSON

Paste YAML and the JSON appears. Lists written with dashes become JSON arrays, and nested lines become nested objects. Comments have no place in JSON, so they are dropped. If the YAML has a mistake, such as a bracket that is never closed, the first problem is shown in words.

JSON to YAML

Paste JSON and the YAML appears. You can choose two or four spaces of indent. The result is plain YAML with no tags or anchors, ready to paste into a configuration file.

Rules that surprise people

This tool follows YAML 1.2, which is stricter than older versions. The words yes and no are text, not booleans. A number written with a leading zero, such as 010, is read as the number 10. If you need text, put it in quotes: "007" stays text. Check the result when your file came from a tool that follows older rules.

One document at a time

A YAML file can hold several documents separated by a line of three dashes. JSON has no such thing, so the tool asks you to convert one at a time.

YAML and JSON Converter: frequently asked questions

Which YAML version is used?
YAML 1.2, so words such as yes and no are text and not booleans.
Are comments kept when I convert to JSON?
No. JSON has no comments, so they are dropped.
Why does it refuse my file?
It may hold more than one YAML document, or the YAML may have an error. The message says which.
Can I choose the indent?
Yes: two or four spaces.
How do I keep 007 as text?
Put it in quotes in the YAML, as "007".
Is the text uploaded?
No. The conversion runs in your browser.

Related searches for YAML and JSON Converter

  • YAML and JSON Converter online
  • free YAML and JSON Converter
  • YAML and JSON Converter online free
  • YAML and JSON Converter for mobile
  • YAML and JSON Converter without sign up
  • YAML and JSON Converter – Text & Developer Tools

YAML and JSON Converter is a free online tool on MAITBOX, in the Text & Developer Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Text & Developer Tools →

Search tools