UUID Studio

JSON to TypeScript

Infer TypeScript interfaces from sample JSON.

  • đź”’ No data stored or uploaded
  • ⚡ 100% client-side
  • 🆓 Free, no account
Click Convert when ready

Override only when Auto cannot parse your paste. Changing this loads a matching sample into Input — click Convert to run. Use Load sample to cycle every format example.

All conversions

Read-only representations of the same 16 bytes. Every textual form is listed here, not in “Prefer format”.

Paste two values: if both sides are valid JSON, a structural diff appears; otherwise UUID / bytes are compared when both decode to the same format.

A
B

Create or edit JSON here (syntax colors), then format, validate, or convert - same as MongoDB $binary UUID blobs on the Convert tab once detected.

New document

Hash, HMAC, AES-GCM/CBC + RSA-OAEP, codecs, JWT decoding, UUID v4, and secure random - all client-side. JWTs use Base64URL (three segments), not a single MIME Base64 block - use Decode JWT below, not raw Base64 decode.

Examples

  • API sample
    {"id":"550e8400-e29b-41d4-a716-446655440000","count":42}

About JSON to TypeScript

Writing interface definitions by hand from an API response is slow and easy to get wrong, especially for deeply nested payloads.

Paste a representative JSON sample and get a `Root` TypeScript interface you can drop straight into your codebase. Since types are inferred from exactly the sample you give it, merge a few different responses by hand if you need optional fields reflected accurately.

FAQ

Are optional fields detected?
Types reflect the sample you provide; union optional fields by merging multiple samples manually.