PureDevTools

JSON to Objective-C Model Converter

Paste JSON, get Objective-C models — @interface, @implementation, initWithDictionary — copy or download

All processing happens in your browser. No data is sent to any server.

Options

Output: 2,529 charsClasses: 2

You’re maintaining an Objective-C codebase that consumes a REST API. The JSON response has 30 fields with nested objects. Writing @property declarations by hand for every field — choosing between NSString *, NSNumber *, NSArray<ClassName *> * — is tedious and error-prone.

What This Tool Does

Paste JSON and get Objective-C model classes instantly. You get both the @interface (header) and @implementation with initWithDictionary: methods. Nested objects become separate model classes. Arrays of objects use proper generic annotations.

Everything runs in your browser. Your data never leaves your device.

Type Mapping

JSON typeObjective-C type
"hello"NSString *
42NSNumber *
3.14NSNumber *
trueNSNumber * (BOOL)
nullid
[{...}]NSArray<ClassName *> *
{...}custom model class

When to Use This

FAQ

Does this send my JSON to a server?

No. All processing happens entirely in your browser using JavaScript.

How are property names formatted?

JSON keys are converted to camelCase Objective-C property names. Snake_case keys like first_name become firstName.

Related Tools

More JSON Tools