Tools for converting between various data formats
Updates
Recently shipped improvements
Automatically convert YAML data structures to TypeScript interfaces or types.
Useful for generating types from config files or Kubernetes manifests.
Auto type inference (string, number, boolean, null)
Automatic nested object separation
Array type handling
null values → Optional property conversion
Set a meaningful root interface name
Enable readonly option for config files
Use export option for K8s resources
A tool that automatically converts YAML formatted data to TypeScript interfaces or types. Paste YAML configuration files from Kubernetes Deployment, Docker Compose, CI/CD pipelines, and more to generate type-safe TypeScript code by analyzing the structure.
Enter YAML
Enter YAML in the left editor or load a provided sample such as Kubernetes or Docker Compose.
Set the Options
Set the root interface name, output format (interface/type), export, readonly, and null-handling options.
Review and Copy the Result
Review the converted TypeScript code in the right editor in real time, then copy it or download a .ts file.
YAML is indentation-sensitive. Invalid indentation causes a parsing error and displays an error message. Indent consistently with spaces and do not use tab characters.
Yes. A Kubernetes Deployment sample is included, and you can paste an actual K8s YAML file to generate types. A root name such as Deployment or Service makes the output clearer.
The YAML parser automatically resolves anchors and aliases to their actual values. The generated types are based on the final resolved values.
YAML values such as ~, null, Null, and NULL all parse as null. Use 'null → optional property' to convert the corresponding field into an optional property (?).