ToolLineup
15 tools

Code Generation

Turn a JSON sample into typed models for TypeScript, Go, Java, C#, Python or JSON Schema.

JSON to TypeScript Converter

This JSON to TypeScript converter turns a sample payload into exported interfaces.

JSON to Go Struct Converter

This JSON to Go converter generates structs with the json tags encoding/json needs.

JSON to Java Class Converter

This JSON to Java converter generates POJOs with Jackson annotations, getters and setters.

JSON to C# Class Converter

This JSON to C# converter generates classes with System.Text.Json attributes and nullable types.

JSON to Python Dataclass Converter

This JSON to Python converter generates typed dataclasses with snake_case field names.

JSON to JSON Schema Generator

This JSON to JSON Schema generator produces a draft 2020-12 schema from a sample payload.

JSON to PHP Array Converter

This converter turns JSON into a PHP array literal, properly escaped.

JSON to Protobuf Schema Generator

This generator infers a .proto schema from a JSON sample, typing numbers correctly.

JSON to JavaScript (JSDoc)

Turn a JSON sample into JSDoc typedefs that give plain JavaScript autocompletion and type checking.

JSON to Objective-C

Turn a JSON sample into Objective-C interfaces with correctly typed and correctly owned properties.

JSON to Dart

Turn a JSON sample into Dart classes with fromJson and toJson, ready for Flutter — no build step needed.

JSON to Kotlin

Turn a JSON sample into Kotlin data classes annotated for kotlinx.serialization, with a package of your choosing.

JSON to Rust

Turn a JSON sample into Rust structs deriving serde Serialize and Deserialize, with snake_case renaming handled.

XML to Code Generator

Turn an XML sample into typed declarations in any of eleven languages, from TypeScript to Rust.

YAML to Code Generator

Turn a YAML sample — a config file, a manifest — into typed declarations in any of eleven languages.

About Code Generation

Writing out the types for an API payload by hand is tedious and easy to get subtly wrong. Paste a representative JSON sample into any of these tools and get the declarations back: TypeScript interfaces, Go structs with json tags, Java classes with Jackson annotations, C# classes for System.Text.Json, Python dataclasses, or a JSON Schema for validation. The shape is inferred across every record in an array rather than from the first one alone, so a field that appears in only some of them is correctly marked optional. All six run entirely in your browser, which matters when the sample you are pasting is real data from a real system.

Everything on this page runs directly in your browser — none of your input is uploaded, and every tool keeps working when you are offline.

Browse other categories