Swift Codable Generator

Paste JSON and this tool creates Codable models you can drop into Xcode. It handles nested objects and arrays.

About this tool

Writing Codable models by hand gets repetitive, especially with nested API payloads. This generator infers Swift types from JSON, builds model structs, and adds coding keys when your JSON keys need mapping.

Parses JSON and infers Swift primitives automatically
Builds nested structs for object hierarchies
Handles arrays, nullable values, and root arrays
Adds CodingKeys when property names are transformed
Copy generated Swift output in one click
Runs fully in your browser so API payloads stay private