FormatCodes
Home/TOML Tools/TOML Formatter

TOML Formatter

Format and validate TOML config files online for free with Taplo, right in your browser.

Local browser processing
No sign-up required
Powered by Taplo
Language
TOMLCargo.toml
Indent
Column width
InputEditable
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
OutputTOML valid29 lines · 501 B
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[package]
name = "my-project"
version = "0.1.0"
edition = "2021"
description = "A sample Rust project"
authors = ["Alice <[email protected]>"]
license = "MIT"
[dependencies]
serde = {version = "1.0", features = ["derive"]}
tokio = {version = "1.0", features = ["full"]}
reqwest = "0.11"
[dev-dependencies]
criterion = "0.5"
mockall = "0.11"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
[profile.dev]
opt-level = 0
debug = true
[[example]]
name = "basic"
path = "examples/basic.rs"
UTF-8 · 2 spaces · taploLocal processing · Ready
How It WorksTOML
Overview
This TOML formatter cleans up config files with inconsistent formatting into a standard style, powered by a WebAssembly build of Taplo. Custom indent, column width, key-value alignment, and key sorting are all supported. Works with Cargo.toml, pyproject.toml, taplo.toml, and other TOML files. Everything runs locally in your browser; your content never leaves your device.
Use Cases
Format project config files like Cargo.toml and pyproject.tomlClean up TOML config with inconsistent indentationCheck whether TOML syntax is correctAlign key-value pairs for better readability
Steps
123
Paste or uploadAdjust format optionsGet the result

Related Tools

Related Guides

Frequently Asked Questions

Search Tools

Search 55+ formatting, conversion, minification, diffing, and generation tools