JSON and YAML
Paste JSON or YAML, pick the direction, and get the other back. When the input does not parse, the message says which line to look at rather than just failing.
It runs in the page, so nothing you paste is sent anywhere.
YAML
Converted in your browser with js-yaml in safe mode. Nothing you paste is sent anywhere.
Questions
- Is what I paste sent anywhere?
- No. Every tool in this kit runs in the page itself. There is no server here that receives what you paste, and you can check it in your browser's network tab: using a tool produces no request carrying your input at all.
- Which YAML features are supported?
- The common ones: mappings, sequences, scalars, nesting, and multi-line strings. It uses the widely used js-yaml library under the hood, in its safe mode, so it will not run code hidden in custom YAML tags.
- Why did my conversion fail?
- Usually a small syntax slip: a tab where YAML wants spaces, a missing quote, or a stray bracket in JSON. The error names the line, so start there. Valid input always converts.
- Does it keep my key order and comments?
- Key order is kept. YAML comments are not, because they do not exist in JSON, so a round trip through JSON drops them. That is a limit of the formats, not the tool, and it is worth knowing before you convert a commented config.
The other tools here
- JSON formatter, format, minify and validate
- Base64 encoder, encode and decode, text or file
- URL encoder, encode and decode, two rules
- UUID generator, version 4, one to a hundred
- Hash generator, sha-256, sha-1 and md5 at once
- JWT decoder, header, payload and expiry
- Regex tester, live matches, groups and flags
- Text diff, compare two blocks, by line or word
- Timestamp converter, unix time to a date, and back
- Cron explainer, a schedule, in plain english
- Colour converter, hex, rgb, hsl, and a contrast check
- Markdown preview, live preview, and copy the html
- JSON to CSV, an array of objects into a spreadsheet
- Data file converter, csv, json and excel, in any direction
- JSON to TypeScript, a sample of json into typed interfaces
- SQL formatter, tidy up sql, or minify it, by dialect
- Password generator, strong random passwords, made on your device
- Number base converter, hex, binary, decimal and octal, live
- curl converter, a curl command to fetch, axios or python