Why it matters
Hand-writing Codable models for a large API response is slow and one wrong type crashes decoding.
Paste a real response and get models with the right types and keys.
How to use it
- Type or paste your input; the example shows the format.
- Press Generate Swift. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Why are some properties optional?
When Make optional is on, or a value is null in the sample.
Does it handle arrays of mixed objects?
It merges keys from every item, so fields missing in some become optional.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.