Minify TOML Online — Free TOML Compressor

Minify TOML configs instantly — Cargo.toml, pyproject.toml and DevOps files. Choose comment preservation or parse-based tight output.

Loading…
TOML Minification
Minify TOML online.

Features

Compress Cargo.toml and pyproject.toml with optional comment handling.

Minify TOML

Compress Cargo.toml and pyproject.toml with optional comment handling.

Basic example

Input TOML

# Cargo manifest [package] name = "fastminify" version = "1.0.0" [dependencies] serde = "1.0"

Minified TOML

[package] name="fastminify" version="1.0.0" [dependencies] serde="1.0"

Options

Remove Comments
When true, parse+stringify drops # comment lines. When false, whitespace-only minify may preserve comments.

Parse path drops comments; whitespace path may keep them

TOML conversion helpers

Use JSON → TOML, TOML → JSON, YAML → TOML or TOML → YAML for format conversion.

FAQ — Minify TOML

Minification

Are # comments preserved?

Only when removeComments is false on whitespace paths. Parse-based minify removes them.

Beautify TOML?

See TOML beautifier — comments cannot survive parse.

Cargo.toml support?

Standard TOML tables and arrays are supported — paste one manifest at a time.

Looking for converters, encoders, formatters, and minifiers in one place? Developer tools hub Open the curated developer tools catalogue.

Other actions for this language