Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
August 3, 2023 17:12
February 24, 2021 21:02
May 20, 2018 00:39
August 3, 2023 17:40
November 28, 2016 21:43
November 28, 2016 21:43
August 3, 2023 17:12
April 10, 2021 16:28
June 7, 2022 09:59


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

AppVeyor tests codecov Quality Gate Status


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 Frameworks

  • .Net Framework 4.6.1 and later
  • .Net Standard 2.0
  • .Net Standard 2.1 and later for best optimizations

Get started

NuGet Install the full NuGet package -or-

NuGet Install the core NuGet package

Docs Have a look at the SmartFormat Wiki

See the changelog for changes.


SmartFormat is licensed under The MIT License (MIT)

The bundled project SmartFormat.ZString is Copyright © Cysharp, Inc. Their software is licensed under The MIT License (MIT). Their conversion methods under the ZString/Number directory is Copyright © .NET Foundation and Contributors und is licensed under The MIT License (MIT).


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