DevToolBox

JSON to Elixir Map Converter

Convert JSON to Elixir map literal syntax with nested structure support.

JSON Input

Elixir Output

Conversion Rules

  • • Simple keys (lowercase, underscores) become atoms: name: "value"
  • • Complex keys remain strings: "Key-Name": "value"
  • • Arrays convert to lists: [1, 2, 3]
  • • Nested objects preserve structure with proper indentation
  • • null becomes nil