ToolForgeby ForgeSparse

POJO Tools

Generate POJO classes from JSON, XML and more.

JSON input

Generated class

interface Person {
  id: number;
  name: string;
  active: boolean;
  score: number;
  tags: string[];
  address: object;
}

Generate classes from JSON online

POJO Tools turns a JSON sample into a ready-to-use class or interface in TypeScript, Java, Python, or C# — so you don't have to hand-write boilerplate types.

Why use this tool

Four languages supported

Generate TypeScript interfaces, Java POJOs with getters/setters, Python dataclasses, or C# classes from the same JSON.

Smart type inference

Automatically detects strings, numbers, booleans, arrays, and nested objects from your sample data.

Custom class name

Name the generated class or interface whatever fits your codebase conventions.

No upload required

Your JSON is processed entirely in your browser.

How it works

  1. 1Paste a sample JSON object into the input box.
  2. 2Enter a class name and pick your target language.
  3. 3Copy the generated class or download it as a file.

Frequently asked questions

Good to know

  • Nested objects are typed generically — for deeply nested classes, generate one level at a time.
  • Arrays infer their type from the first element.
  • Runs fully in your browser — nothing is uploaded.