Random TOML

按条数与字段数生成随机 TOML。

What Is the Random TOML Generator?

The random TOML generator creates syntax-valid TOML test data online based on the number of records and fields you specify. The output uses the [[items]] array-of-tables structure, where each record has an auto-incrementing id and several field keys, and string values are automatically escaped for backslashes and double quotes per TOML rules.

Key Features

  • Custom record count (1 to 200) and field count (1 to 30)
  • Organize records with the [[items]] array-of-tables structure
  • Auto-incrementing id plus field1, field2, etc., in every record
  • Automatic escaping of backslashes and double quotes for valid TOML
  • One-click copy or clear and regenerate

Use Cases / Notes

Great for generating config samples or mock data for TOML parser testing and config file format debugging. The output is standard TOML text that mainstream TOML libraries can parse directly.

How to Use

  1. Enter the number of records and fields (leave blank for defaults)
  2. Click Generate to get the random TOML text
  3. Click Copy to use the result for testing or config debugging