UTILS.
100% in-browser

Codegen Tools

Free code generators that run entirely in your browser — turn JSON into Zod, Pydantic, Rust, Java, C# and MySQL, JSON Schema into TypeScript, HTML and SVG into JSX, CSS into a JS style object, and JS objects into JSON. Paste in, copy out — nothing is uploaded.

🛡️

JSON to Zod Schema

Paste a sample JSON value and generate a Zod schema plus an inferred TypeScript type, so one shape validates at runtime and types at compile time.

🐍

JSON to Pydantic Model

Turn a JSON sample into Python Pydantic v2 model classes, with toggles for @dataclass or TypedDict output and snake_case field aliasing.

🦀

JSON to Rust Serde Structs

Generate Rust structs with serde derives from a JSON sample, ready to Serialize/Deserialize, with Option for nullable fields and rename attributes.

JSON to Java POJO

Create Java POJO classes from a JSON sample, with Jackson or Gson annotations, generated getters and setters, and boxed types for nullable fields.

💠

JSON to C# Classes

Generate C# model classes from a JSON sample for System.Text.Json or Newtonsoft.Json, with PascalCase properties and nullable value types.

📘

JSON Schema to TypeScript

Compile a JSON Schema (draft-07 or 2020-12) into TypeScript interfaces and type aliases, handling required, enums, $ref, arrays, and combinators.

🗄

JSON to SQL CREATE TABLE

Infer a SQL CREATE TABLE (and optional INSERTs) from a JSON array of objects, picking column types automatically for MySQL, PostgreSQL, or SQLite.

HTML to JSX / React

Convert an HTML snippet into valid JSX for React — renaming attributes, self-closing void tags, and turning inline styles into style objects.

🎨

SVG to JSX Component

Turn raw SVG markup into a ready-to-use React component with camelCased attributes, prop spreading, and optional currentColor and forwardRef.

💅

CSS to JS Style Object

Convert a block of CSS declarations into a JavaScript style object for React inline styles, styled-components, or Emotion, with camelCased properties.

{ }

JS Object to Strict JSON

Repair a loose JavaScript object literal — unquoted keys, single quotes, trailing commas, comments — into strict valid JSON, without eval.

Browse other categories