Need help with toml?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

131 Stars 32 Forks MIT License 114 Commits 22 Opened issues


Parse TOML. Like a bawss.

Services available


Need anything else?

Contributors list


A sane configuration format from @mojombo. More information here:

This is far superior to YAML and JSON because it doesn't suck. Really it doesn't.


Add to your Gemfile:

gem "toml", "~> 0.3.0"

It's simple, really.

content = < { "things" => { "other" => "things", "what" => 900000 } }

You can also use the same API as

if you'd like:
TOML.load("thing = 9")
# => {"thing" => 9}


=> {"whatever" => "keys"}

There's also a beta feature for generating a TOML file from a Ruby hash. Please note this will likely not give beautiful output right now.

hash = {
  "integer" => 1,
  "float" => 3.14159,
  "true" => true,
  "false" => false,
  "string" => "hi",
  "array" => [[1], [2], [3]],
  "key" => {
    "group" => {
      "value" => "lol"
doc =
# doc will be a string containing a proper TOML document.


Written by Jeremy McAnally (@jm) and Dirk Gadsden (@dirk) based on TOML from Tom Preston-Werner (@mojombo).

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.