TOML Formatter & Validator
Parse, format, and validate TOML documents. Supports tables, arrays, inline tables, strings, numbers, booleans, and dates.
Valid TOML
Input
Formatted output
title = "TOML Example" [owner] name = "Tom Preston-Werner" dob = 1979-05-27T07:32:00.000Z [database] enabled = true ports = [8000, 8001, 8002] [temp_targets] cpu = 79.5 case = 72 [[data]] 0 = "delta" 1 = "phi" [[data]] 0 = 3.14 [servers] [alpha] ip = "10.0.0.1" role = "frontend" [beta] ip = "10.0.0.2" role = "backend"
Parsed Structure (JSON)
{
"title": "TOML Example",
"owner": {
"name": "Tom Preston-Werner",
"dob": "1979-05-27T07:32:00.000Z"
},
"database": {
"enabled": true,
"ports": [
8000,
8001,
8002
],
"data": [
[
"delta",
"phi"
],
[
3.14
]
],
"temp_targets": {
"cpu": 79.5,
"case": 72
}
},
"servers": {
"alpha": {
"ip": "10.0.0.1",
"role": "frontend"
},
"beta": {
"ip": "10.0.0.2",
"role": "backend"
}
}
}Related tools
SQL FormatterCode
Format and beautify SQL queries with syntax highlighting.
GraphQL FormatterCode
Format and prettify GraphQL queries, mutations, and schema definitions.
HTML FormatterCode
Format/prettify HTML locally in your browser.
JSON Formatter & ValidatorJSON
Format, validate, and prettify JSON in your browser. Fast and free.
JSON Sort KeysJSON
Recursively sort JSON object keys for stable diffs.
Line NumbererText
Add line numbers to text (with options for start/format).