JSON input
Paste JSON, optionally name the root type, then generate.
Your Swift Codable struct code will appear here.
Generate Swift Codable structs from JSON. Get camelCase properties, CodingKeys for odd keys, optionals, and nested structs automatically.
Paste JSON, optionally name the root type, then generate.
Your Swift Codable struct code will appear here.
Swift's Codable synthesis writes the encode and decode logic for you at compile time. This tool produces the struct declarations, so a sample API response becomes decodable models in seconds.
JSON keys rarely follow Swift style. The generator converts keys to camelCase properties and emits a CodingKeys enum only where the mapping differs, keeping the output clean and idiomatic.