# YAML to TOML Guide

Convert YAML documents to TOML.

- Tool: https://ilham.dev/tools/yaml-to-toml/
- Guide URL: https://ilham.dev/guides/yaml-to-toml/
- Tool guides index: https://ilham.dev/guides/tools/
- Broader guide: Working With Structured Data (https://ilham.dev/guides/working-with-structured-data/)

## What it does

Convert YAML to TOML, preserving nesting, arrays and types. TOML has no null, so a null value is reported rather than quietly dropped or turned into an empty string.

## Use the tool

Open https://ilham.dev/tools/yaml-to-toml/, add the input the tool asks for, run it, and check the output before using it elsewhere.

## Input and output

- Input: text.
- Output: text.
- Category: Formats.

## Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

## Questions

### What happens to a null value?

TOML has no null type, so it cannot be represented. The converter tells you which key it was, so you can decide what the absence should mean.

### Does key order survive?

Yes, and it matters in TOML, because keys have to be defined before any table that uses them. The converter keeps the order it was given.