Skip to content

YAML Libraries

YAML data serialization libraries for most modern programming languages.

Uses the YAML Test Suite
Supported by The YAML Company
Available in the YAML Playground


C/C++

Clojure

Crystal

  • YAML


    YAML 1.1 from the standard library

  • YAMLScript


    YAMLScript YAML loader

C#/.NET

D

  • D-YAML


    YAML 1.1 library w/ official community support

Dart

  • yaml


    YAML package for Dart

Delphi

Elixir

Erlang

  • yamerl


    YAML support for the Erlang language

  • erl-yaml


    YAML support for Erlang (based on libyaml)

Fortran

Go

Haskell

  • HsYAML


    YAML 1.2 implementation in pure Haskell

  • YamlReference


    Haskell 1.2 reference parser

  • yaml


    YAML 1.1 Haskell framework (based on libyaml)

  • YAMLScript


    YAMLScript YAML loader

Java

JavaScript

  • yaml


    JavaScript parser/stringifier (YAML 1.2, 1.1)

  • js-yaml


    Native PyYAML port to JavaScript

  • YAMLStar


    YAML 1.2 loader

  • YAMLScript


    YAMLScript YAML loader

Julia

Lua

MATLAB

  • jsonlab


    YAML reader/writer for MATLAB and GNU Octave

Nim

  • NimYAML


    YAML 1.2 implementation in pure Nim

OCaml

Perl

PHP

Python

R

Raku

Ruby

  • psych


    libyaml wrapper (in Ruby core for 1.9.2)

  • YAMLScript


    YAMLScript YAML loader

Rust

  • yaml-rust2


    YAML 1.2 implementation in pure Rust (actively maintained)

  • saphyr


    Modern Rust crates for parsing YAML

  • serde-yaml


    YAML framework for the Rust language

  • YAMLStar


    YAML 1.2 loader

  • YAMLScript


    YAMLScript YAML loader

Shell

  • parse_yaml


    Simple YAML parser for Bash using sed and awk

  • shyaml


    Read YAML files - jq style

Swift

  • Yams


    libyaml wrapper

Typst

  • yaml


    YAML support built into Typst scripting language

V

  • yaml


    Strictly parse and format YAML data

Others

  • yamlvim


    YAML dumper/emitter in pure vimscript