Skip to content

YAML Libraries

YAML data serialization libraries for over 40 modern programming languages!!!

Uses the YAML Test Suite
Available in the YAML Playground
Supported by The YAML Company
1.2 Supports YAML 1.2
Actively maintained (updated within the last year)
Pure implementation (no native library dependency)
Safe loading by default (no arbitrary object construction)
Supports merge keys
Preserves comments (round-trip editing)


Ada

C

  • libyaml


    "C" Fast YAML 1.1

    MIT

  • libfyaml 1.2


    "C" YAML 1.2 processor

    MIT

  • libcyaml


    YAML de/serialization of C data (using libyaml)

    ISC

C++

C#/.NET

Clojure

Common Lisp

  • cl-yaml


    YAML parser and emitter built on libyaml

Crystal

D

Dart

Delphi / Free Pascal

Dyalog APL

Elixir

Erlang

F

Fortran

Go

Groovy

  • YamlSlurper


    Built-in YAML parser (Groovy 3+)

    Apache-2.0

Haskell

Java

JavaScript

Julia

Kotlin

  • kaml 1.2


    YAML 1.2 support for kotlinx.serialization

    Apache-2.0

  • yamlkt


    Multiplatform YAML parser for kotlinx.serialization

    Apache-2.0

  • Hoplite


    Kotlin config library with YAML support

    Apache-2.0

  • YAMLStar 1.2


    YAML 1.2 loader

    MIT

  • YAMLScript 1.2


    YAMLScript YAML loader

    MIT

Lua

MATLAB / Octave

  • jsonlab


    YAML reader/writer for MATLAB and GNU Octave

    BSD-3-Clause

ML

MoonBit

Nim

Objective-C

OCaml

Perl

PHP

PowerShell

Python

R

Raku

Ruby

Rust

Scala

Scheme

Shell

  • parse_yaml


    Simple YAML parser for Bash using sed and awk

    GPL-3.0

  • shyaml


    Read YAML files - jq style

    BSD-2-Clause

Swift

Tcl

  • yaml


    YAML processing with huddle support

TypeScript

  • yaml 1.2


    JavaScript/TypeScript YAML parser (YAML 1.2, 1.1)

    ISC

  • js-yaml 1.2


    YAML parser and serializer

    MIT

  • yaml-thom 1.2


    Experimental YAML 1.2 reference implementation

    MIT

Typst

  • yaml


    YAML support built into Typst scripting language

    Apache-2.0

V

  • yaml


    Strictly parse and format YAML data

    MIT

Vim

  • yamlvim


    YAML dumper/emitter in pure vimscript

Zig