OCaml Type Generator
Generate OCaml type definitions from JSON input. Automatically infers record types with proper field types including int, float, bool, string, lists, and nested records.
How to Use OCaml Type Generator
Paste your JSON data, optionally set a root type name, and click Generate. The tool infers OCaml record types with proper field types for all nested structures.
Step-by-Step Instructions
- Enter a root type name (optional)
- Paste your JSON object or array into the input
- Click Generate OCaml Types
- Copy the generated type definitions
Related Tools
JSON Formatter and Validator
Format, validate, and pretty-print JSON with syntax highlighting.
Base64 Encoder and Decoder
Encode text to Base64 or decode Base64 strings back to plain text.
URL Encoder and Decoder
Encode special characters for URLs or decode percent-encoded strings.
HTML Entity Encoder and Decoder
Encode special characters as HTML entities or decode them back.