Elixir Struct Generator
Generate Elixir struct definitions with typespecs from JSON input. Creates defstruct with default values and @type annotations.
How to Use Elixir Struct Generator
Paste JSON to generate an Elixir struct with typespecs and default values. Supports strings, numbers, booleans, lists, and maps.
Step-by-Step Instructions
- Enter a module name
- Paste your JSON object
- Click Generate Struct
- Copy the generated Elixir code
Related Tools
JSON Formatter and Validator
Format, validate, and pretty-print JSON with syntax highlighting.
Base64 Encoder and Decoder
Encode text to Base64 or decode Base64 strings back to plain text.
URL Encoder and Decoder
Encode special characters for URLs or decode percent-encoded strings.
HTML Entity Encoder and Decoder
Encode special characters as HTML entities or decode them back.