PHP Array to JSON Converter
A PHP array literal, var_export or print_r output turned into JSON — nothing executed.
YAML config into TOML tables — the format Cargo, Hugo and pyproject.toml want.
Drop a YAML file here, or click to choose one
Converted on your device — the file is never uploaded
The YAML to TOML Converter produces TOML from YAML configuration: nested mappings become [tables], lists of mappings become [[array tables]], and nulls — which TOML cannot express — are dropped and counted.
Rust’s Cargo, Hugo, Netlify, Poetry and every modern Python project with a pyproject.toml read TOML, while the same settings often already exist as YAML from an older setup or another tool. The two formats look similar and are not: TOML has real tables, explicit types, and no concept of null at all.
Paste YAML and get TOML. Nested mappings become [tables], deeper ones become dotted [table.names], and a list of mappings becomes the [[array of tables]] form that Cargo and Hugo use for dependencies and menu entries. Strings, numbers, booleans and dates are written in their TOML forms with proper quoting and escaping. Because TOML cannot express null, those keys are dropped — and counted, so you know exactly how many and can give them real values.
Nested mappings become [tables] and deeper ones dotted [table.names].
A list of mappings becomes the [[entry]] form Cargo and Hugo use.
TOML has no null, so those keys are dropped — and the number is reported.
Strings are escaped and quoted to TOML’s rules, including multi-line values.
The stats show how many keys, tables and array tables were written.
It must start with keys: TOML documents are tables, not lists.
Drop them, which TOML requires, and read the count in the stats.
The stats show how many [tables] and [[array tables]] were produced.
Paste it into Cargo.toml, config.toml or pyproject.toml.
TOML has no null. A key with no value cannot be represented, so those keys are dropped and the number removed is shown. Give them a real value in the YAML if they matter.
TOML’s way of writing a list of objects. Each entry repeats the table header in double brackets — the form Cargo uses for dependencies and Hugo for menu entries.
Dates and date-times written in ISO 8601 stay in that form, which TOML supports natively as first-class types.
No, and no converter can: a TOML document must be a table of named keys. Wrap the list under a key first, for example items: [ … ].
What people who use the YAML to TOML Converter think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the YAML to TOML Converter. It takes half a minute and no account.
Write the first reviewA PHP array literal, var_export or print_r output turned into JSON — nothing executed.
US, UK, EU, Japan and India ring sizes, from a measurement or a size you know.
Shrink uncompressed recordings to MP3 — constant or variable bitrate, your choice.
Turn a photo into a GIF, with the palette built from the image itself.
Turn Apple M4A and AAC audio into MP3 that plays on anything.
All 148 CSS colour names as HEX — and the nearest name for any colour.
Turn 24-hour and military times into AM/PM, in bulk or inside text.
Write a money amount the way a cheque needs it — Taka, Rupees, Dollars and more.