Formats

TOML Parser

Parse, validate, and format TOML files.

How to use it

  1. Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type TOML Parser and press Return.
  2. Choose Format or To JSON at the top.
  3. Paste or type your text into Input.
  4. Adjust the Options on the right if you need to. The defaults are listed below.
  5. Press Format, or ⌘↵.
  6. To go the other way, press Swap or ⌘S. The output moves into the input.
  7. Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.

Options

OptionValuesDefault
Sort keysSort keys alphabeticallyOn or offOff
Inline simple tablesUse inline format for simple tablesOn or offOff

Example

Real output from Devly, with the default options.

Input
title = "Devly"

[app]
version = "2.3.0"
tools = 65

[price]
usd = 4.99
once = true
title = "Devly"

[price]
usd = 4.99
once = true

[app]
tools = 65
version = "2.3.0"

From Terminal

With the free command-line tool installed:

Terminal
devly toml --path input.txt
# or pipe text in
pbpaste | devly toml

Quick Switch also finds it by: toml, config, parse, format, cargo, rust.

More Formats tools