JSON to Objective-C Model Converter
Paste JSON, get Objective-C models — @interface, @implementation, initWithDictionary — copy or download
Options
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 type | Objective-C type |
|---|---|
"hello" | NSString * |
42 | NSNumber * |
3.14 | NSNumber * |
true | NSNumber * (BOOL) |
null | id |
[{...}] | NSArray<ClassName *> * |
{...} | custom model class |
When to Use This
- Legacy iOS/macOS apps — generate models for APIs consumed by Objective-C code
- Mixed Swift/ObjC projects — create ObjC models that bridge to Swift
- macOS development — scaffold model classes for JSON-based APIs
- Core Data integration — use generated models as a reference for managed object subclasses
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.