# Tomlyn

> .NET TOML 1.1 parser, round-trippable syntax tree and System.Text.Json-style serializer, NativeAOT ready

Source: https://talira.ai/catalog/tomlyn-hskvv2qr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / toml](https://talira.ai/categories/developer-tools/parsing/toml)
- Licence: BSD-2-Clause[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (BSD-2-Clause).
- Free tier: yes[^1]
- Supports: [TOML](https://talira.ai/standards/toml.md)
- Backed by: [Alexandre Mutel](https://talira.ai/orgs/xoofx.md)

Tomlyn is a high-performance .NET parser for TOML 1.1, with a lossless, round-trippable syntax tree and an object serializer whose API follows System.Text.Json (TomlSerializer, TomlSerializerOptions). A source generator ships in the package for NativeAOT and trimming, and it can reuse System.Text.Json attributes. It targets net8.0, net10.0 and netstandard2.0, and installs from NuGet.

## Links

- GitHub: https://github.com/xoofx/Tomlyn
- Docs: https://xoofx.github.io/Tomlyn/

## Problems it solves

- I need to parse and write TOML config files in a .NET app.
- edit a TOML file from C# without losing its comments and formatting
- deserialize a TOML config into my C# classes in a NativeAOT app

## Features

- System.Text.Json-style serializer for TOML
- lossless, trivia-preserving syntax tree for round-tripping files
- source generator for NativeAOT and trimming
- reuses System.Text.Json attributes such as JsonPropertyName

## Limitations

- Version 1 supports TOML 1.1.0 only, not TOML 1.0.[^1]
- Version 1 is a redesign with breaking changes from earlier versions.[^1]

## Trust

Overall: 0.48 out of 1.
Signals: maintenance 0.68, adoption 0.56, momentum 0.26, community 0.56, backing 0.30, extensibility 0.00.

- last commit 7 days ago
- 12 commits in the last 90 days
- latest release 2.11.1 21 days ago
- 607 GitHub stars
- 24 contributors
- accepts sponsorship (Github)
- backed by Alexandre Mutel

## Sources

[^1]: https://github.com/xoofx/Tomlyn/blob/main/readme.md (checked 29 Nov 2026)
[^2]: https://github.com/xoofx/Tomlyn/blob/main/license.txt (checked 29 Nov 2026)
