Generate Elixir structs and typespecs from a JSON object instantly in your browser. Custom schema inference. UML diagram view. One-way. 100% client-side.
The JSON to Elixir converter generates Elixir `defstruct` definitions with `@type t()` typespecs from a JSON sample. Strings become `:binary`, numbers become `:integer` or `:float`, booleans become `:boolean`, and nested objects become nested struct modules. The output follows Elixir module conventions and is ready to paste into a Phoenix or Ecto project.
QIs the output Ecto-compatible?
The output generates plain Elixir structs. Converting to Ecto schemas requires adding use Ecto.Schema and changing defstruct to schema/field macros.
QIs my data sent to a server?
No. All schema generation runs in a Web Worker inside your browser.