Gitpedia

SmartFormat

A lightweight text templating library written in C# which can be a drop-in replacement for string.Format

From axuno·Updated May 30, 2026·View on GitHub·

**SmartFormat** is a is a **lightweight text templating** library written in C# which can be a drop-in replacement for `string.Format`. More than that **SmartFormat** can format data with named placeholders, lists, localization, pluralization and other smart extensions. The project is written primarily in C#, distributed under the Other license, first published in 2010. It has gained significant community traction with 1,238 stars and 105 forks on GitHub. Key topics include: formatter, localization, netframework, netstandard, pluralization.

Latest release: v3.6.1
September 13, 2025View Changelog →
<img src="https://raw.githubusercontent.com/axuno/SmartFormat.NET/main/SmartFormat.svg" width="100" alt="Logo">

GitHub release
License: MIT
AppVeyor build status windows
AppVeyor build status linux

AppVeyor tests
codecov
Quality Gate Status

Paypal-Donations

SmartFormat is a is a lightweight text templating library written in C# which can be a drop-in replacement for string.Format. More than that SmartFormat can format data with named placeholders, lists, localization, pluralization and other smart extensions.

  • High performance with low memory footprint
  • Minimal, intuitive syntax
  • Formatting takes place exclusively at runtime
  • Exact control of whitespace text output
  • string.Format compatibility mode and SmartFormat enhanced mode
  • Most common data sources work out-of-the-box
  • Many built-in formatting extensions
  • Custom formatting and source extensions are easy to integrate

Supported Target Frameworks

  • .Net Framework 4.6.2 and later
  • .Net Standard 2.0, .Net Standard 2.1
  • .Net 6.0 or .Net 8.0

For the best optimizations and performance, use .NET 6.0 or .NET 8.0. You can expect a nice improvement in speed compared to .NET Framework 4.6.2.

Get started

NuGet Install the full NuGet package -or-

NuGet Install the core NuGet package

Docs
Have a look at the SmartFormat Wiki

License

SmartFormat is licensed under The MIT License (MIT)

Thanks!

We would like to thank JetBrains for supporting the project with free licenses of their fantastic tools.

JetBrains logo

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from axuno/SmartFormat via the GitHub API.Last fetched: 6/1/2026