Config converter: JSON to YAML, YAML to JSON, TOML, XML and CSV

Convert between JSON, YAML, TOML, XML and CSV in your browser. Paste a config or data file, pick the new format, copy or download the result.

Keep it one tap away for everyday use.

Bookmark Config converter?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

Or install fibub as an app: every tool you open then works offline.

  1. Paste
  2. Pick format
  3. Check
  4. Copy
Nothing is uploadedWorks offline once open

Each format is read into plain data (keys, lists, text, numbers, true/false) and written out in the other one.

Result

 

    What it does

    Settings and data travel in many text formats: JSON for web APIs, YAML for Docker, Kubernetes and CI files, TOML for Python and Rust projects, XML for older systems and feeds, CSV for spreadsheets. This tool reads one of them into plain data (keys, lists, text, numbers and true/false) and writes it out in another, all in your browser and with nothing uploaded.

    It can detect the input format for you, or you can choose it. Mistakes are reported with a line number where the format allows it. Check the JSON first with the JSON formatter, look at XML with the XML formatter, or tidy a CSV with the table converter before you convert.

    How to use it

    1. Paste your text. A small JSON example is loaded.
    2. Leave From on “Detect it” or pick the format yourself.
    3. Choose To. The result updates as you type.
    4. Use Copy result or Download file. Swap From and To feeds the result back in to go the other way.

    What each format does

    • JSON: strict, double-quoted keys and strings.
    • YAML: indentation-based. Supported: maps, lists, flow lists like [a, b], quoted and plain text, | and > blocks, comments (dropped on conversion). Not supported: anchors, aliases and tags.
    • TOML: key = value, [tables], [[lists of tables]], inline tables, dates kept as text. TOML has no null, so empty values become "", and the top level must be an object.
    • XML: attributes become keys starting with @, text next to child elements becomes #text, repeated elements become a list. A document with no single root gets a <root> wrapper.
    • CSV: the first row is the column names. Going to CSV, the data must be a list of records; nested keys are joined with dots (db.host).

    Worked example

    The example JSON has 7 lines of settings, a nested db and two servers. As YAML it becomes 13 lines (db: with an indented host and ports list, servers: with two - name: items). As TOML it becomes 15 lines, with a [db] table and two [[servers]] blocks. Converting the YAML back to JSON gives exactly the same data.

    FAQs

    Is my config uploaded? No. Conversion happens in your browser, so keys and passwords in config files stay on your device. Still, avoid pasting real secrets into any page you do not need to.

    Why did a number turn into text? 10.0.0.1 is not a number, so it stays text. Values such as 1.5 or 42 become numbers, and YAML quotes text that could be mistaken for a number.

    Why does CSV to JSON give numbers? Cells that look like whole numbers, decimals, true or false become those types. Put quotes around values like postcodes with leading zeros in your source if they must stay text, then check the result.

    Which YAML does it read? The everyday subset used in settings files. If it reaches something it cannot read, it names the line.

    Where the numbers come from

    • Formats follow JSON (RFC 8259), TOML 1.0 (toml.io), YAML 1.2 common subset and XML 1.0 (W3C); fibub's own small readers and writers.

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Last updated 2026-12-05.

    Related tools