Free & open source — no account required

local-first · zero data retention

Paste any schema.
Get 160+ formats.

Reads your real JSON — detecting emails, UUIDs, and dates — and emits Zod, TypeScript, Go, Rust, Prisma, MCP tools, OpenAI function schemas, Vercel AI SDK tools, and 150 more. No other converter generates all of those.

npm i -g typemorph-cli
input.json
Zod.ts
12345678
import { z } from "zod";

export const rootSchema = z.object({
  id:        z.uuid(),
  email:     z.email(),
  createdAt: z.iso.datetime(),
});
export type Root = z.infer<typeof rootSchema>;
+155 more
The Zod difference

Most converters stop at z.string().

TypeMorph reads the actual values and emits validators that catch bad data — emails, UUIDs, URLs, and ISO dates, not just strings.

Typical JSON → Zod
email:     z.string()
id:        z.string()
createdAt: z.string()
TypeMorph
email:     z.email()
id:        z.uuid()
createdAt: z.iso.datetime()
Features

Everything for schema work

160+

Output Formats

TypeScript, Zod, Go, Rust, Python, Java, Kotlin, Swift, C#, GraphQL, Prisma, Protobuf, SQL, Mermaid — and 148 more.

A+

Schema Quality Score

A–F grading with field-level feedback. Know exactly where your schema needs work before it ships.

v1→v2

Breaking Change Detector

Semantic diff between schema versions with severity scoring. Never ship a silent breaking change.

⌃⇧T

VS Code Extension

Convert schemas without leaving your editor. Ctrl+Shift+T to transform. Right-click to check quality.

$ npm

CLI

typemorph-cli on npm. Integrate schema conversion into any CI pipeline or build script in seconds.

MCP

AI Agent Tools

Generate MCP tool definitions, OpenAI function schemas, and Vercel AI SDK tools directly from JSON — paste straight into any AI agent.

How it works

One AST pipeline. Any format.

01

Paste your schema

JSON, YAML, OpenAPI, SQL, or TypeScript — paste it directly in.

{
  "id": "8f14e45f-...",
  "email": "[email protected]",
  "createdAt": "2026-03-04T..."
}
02

Parsed to AST

inferSchema() builds a language-agnostic AST — formats and all.

SchemaAST {
  fields: [
    { name: "id",
      format: "uuid" },
    { name: "email",
      format: "email" }
  ]
}
03

Generate any format

Select a target. The generator turns the AST to production-ready code.

export interface User {
  id:        string;
  email:     string;
  createdAt: string;
}

// Zod · Go · Rust · +155

From JSON to MCP tool in 10 seconds.

No signup. No upload. Everything runs locally — your schema never leaves your machine.

v1.2.5-PRICING-19