YAML to TypeScript Converter

Paste a YAML config and get TypeScript interfaces that describe it. Use them to type config loaders, Helm values or CI files.

Example

Input
# Service config
service:
  name: api
  replicas: 3
  ports:
    - 8080
    - 8443
defaults: &defaults
  timeout: 30
  retries: 2
production:
  <<: *defaults
  timeout: 60
Output
export interface Root {
  service: Service;
  defaults: Defaults;
  production: Defaults;
}

export interface Service {
  name: string;
  replicas: number;
  ports: number[];
}

export interface Defaults {
  timeout: number;
  retries: number;
}

What changes in this conversion

ParseBox shows this note under the output, so nothing is lost without a warning.

  • comments not kept
  • anchors, aliases and merge keys expanded

Private by design

ParseBox runs entirely in your browser. Your text is never uploaded, logged or stored on a server, so it is safe to paste API responses, tokens and config files.

Related conversions

All 30 formats in ParseBox →