Skip to content
⌘K

{fmt}

A modern formatting library.

health 83contrib 5926k

Overview & architecture

Categories
Core Libraries / Textprimary
C++ standard
C++11
Build systems
cmake
License
MIT
Languages
C++
Last release
12.2.1 · Nov 7, 2026
Also known as
fmtlib

Repository activity

snapshot Nov 23, 2026
GitHub stars
latest
26k▲ 79
Merged PRs (30d)
latest
20▲ 15
Contributors (90d)
latest
22▲ 19
Issue first response p50
–
No snapshots yet.
4 open issues12 open PRs58 commits (30d)

Recent notable activity

  • Release
    {fmt} 12.2.1

    Fixed a heap buffer overflow on 32-bit targets when the size of a formatting buffer overflows, e.g. fmt::format(L"{:>{}}", s, 1100000000). Such allocations now throw std::bad_alloc. Fixed an out-of-bounds read when parsing format specifiers of std::error_code ( Thanks @IfkumRfnl. Fixed a crash when formatting nullptr…

    Victor Zverovich12.2.1
  • Release
    {fmt} 12.2.0

    Added a C11 API that brings fast, type-safe formatting to C. The new fmt-c library and fmt/fmt-c.h header use _Generic to dispatch on argument types and outperform printf/sprintf. For example: c++ #include fmt_print(stdout, "The answer is {}.\n", 42); ( Thanks @Soumik15630m, @Ferdi265 and @localspook. Added a separate…

    Victor Zverovich12.2.0
  • Release
    {fmt} 12.1.0

    Optimized buffer::append, resulting in up to ~16% improvement on spdlog benchmarks ( Thanks @fyrsta7. Worked around an ABI incompatibility in std::locale_ref between clang and gcc ( Made std::variant and std::expected formatters work with format_as ( Thanks @phprus. Made fmt::join work with C++ modules ( Thanks…

    Victor Zverovich12.1.0
  • Release
    {fmt} 12.0.0

    Optimized the default floating point formatting ( In particular, formatting a double with format string compilation into a stack allocated buffer is more than 60% faster in version 12.0 compared to 11.2 according to dtoa-benchmark: Function Time (ns) Speedup fmt11 34.471 1.00x fmt12 21.000 1.64x Added constexpr…

    Victor Zverovich12.0.0
  • Release
    {fmt} 11.2.0

    Added the s specifier for std::error_code. It allows formatting an error message as a string. For example: c++ #include int main() { auto ec = std::make_error_code(std::errc::no_such_file_or_directory); fmt::print("{:s}\n", ec); } prints No such file or directory (The actual message is platform-specific.) Fixed…

    Victor Zverovich11.2.0
  • Release
    {fmt} 11.1.4

    Fixed ABI compatibility with earlier 11.x versions on Windows ( Improved the logic of switching between fixed and exponential format for float ( Moved is_compiled_string to the public API ( Thanks @SwooshyCueb. Simplified implementation of operator""_cf ( Thanks @LocalSpook. Fixed __builtin_strlen detection ( Thanks…

    Victor Zverovich11.1.4
  • Release
    {fmt} 11.1.3

    Fixed compilation on GCC 9.4 ( Worked around an internal compiler error when using C++20 modules with GCC 14.2 and earlier ( Worked around a bug in GCC 6 ( Fixed an issue caused by instantiating formatter ( Thanks @timsong-cpp. Fixed formatting into std::ostreambuf_iterator when using format string compilation (…

    Victor Zverovich11.1.3
  • Release
    {fmt} 11.1.2

    Fixed ABI compatibility with earlier 11.x versions ( Added wchar_t support to the std::bitset formatter ( Thanks @phprus. Prefixed CMake components with fmt- to simplify usage of {fmt} via add_subdirectory ( Updated docs for meson ( Thanks @trim21. Fixed a compilation error in chrono on nvcc ( Thanks @breyerml. Fixed…

    Victor Zverovich11.1.2
  • Release
    {fmt} 11.1.1

    Fixed ABI compatibility with earlier 11.x versions ( Defined CMake components (core and doc) to allow docs to be installed separately ( Thanks @carlsmedstad.

    Victor Zverovich11.1.1
  • Release
    {fmt} 11.1.0

    Improved C++20 module support ( Thanks @kamrann and @Arghnews. Reduced debug (unoptimized) binary code size and the number of template instantiations when passing formatting arguments. For example, unoptimized binary code size for fmt::print("{}", 42) was reduced by ~40% on GCC and ~60% on clang (x86-64). GCC: Before:…

    Victor Zverovich11.1.0
  • Release
    {fmt} 11.0.2

    Fixed compatibility with non-POSIX systems ( Fixed performance regressions when using std::back_insert_iterator with fmt::format_to ( Fixed handling of std::generator and move-only iterators ( Thanks @Arghnews. Made formatter ::parse work with types convertible to std::string_view ( Thanks @Arghnews. Made volatile…

    Victor Zverovich11.0.2

Stories

ReleaseFor you

{fmt} 12.2.1 released

Fixed a heap buffer overflow on 32-bit targets when the size of a formatting buffer overflows, e.g. fmt::format(L"{:>{}}", s, 1100000000). Such allocations now throw std::bad_alloc. Fixed an out-of-bounds read when parsing format specifiers of std::error_code ( Thanks @IfkumRfnl. Fixed a crash…

Why it matters: {fmt} is in Core Libraries (one of your focus areas). 1 tracked project depends on it.

ReleaseFor you

{fmt} 12.2.0 released

Added a C11 API that brings fast, type-safe formatting to C. The new fmt-c library and fmt/fmt-c.h header use _Generic to dispatch on argument types and outperform printf/sprintf. For example: c++ #include fmt_print(stdout, "The answer is {}.\n", 42); ( Thanks @Soumik15630m, @Ferdi265 and…

Why it matters: First release in 8 months. {fmt} is in Core Libraries (one of your focus areas). 1 tracked project depends on it.

Maintainers & organizations

every claim links to its source

Maintainers

Top contributors

Releases & changelog

  • {fmt} 12.2.1

    Fixed a heap buffer overflow on 32-bit targets when the size of a formatting buffer overflows, e.g. fmt::format(L"{:>{}}", s, 1100000000). Such allocations now throw std::bad_alloc. Fixed an out-of-bounds read when parsing format specifiers of std::error_code ( Thanks @IfkumRfnl. Fixed a crash when formatting nullptr…

  • {fmt} 12.2.0major

    Added a C11 API that brings fast, type-safe formatting to C. The new fmt-c library and fmt/fmt-c.h header use _Generic to dispatch on argument types and outperform printf/sprintf. For example: c++ #include fmt_print(stdout, "The answer is {}.\n", 42); ( Thanks @Soumik15630m, @Ferdi265 and @localspook. Added a separate…

  • {fmt} 12.1.0major

    Optimized buffer::append, resulting in up to ~16% improvement on spdlog benchmarks ( Thanks @fyrsta7. Worked around an ABI incompatibility in std::locale_ref between clang and gcc ( Made std::variant and std::expected formatters work with format_as ( Thanks @phprus. Made fmt::join work with C++ modules ( Thanks…

  • {fmt} 12.0.0major

    Optimized the default floating point formatting ( In particular, formatting a double with format string compilation into a stack allocated buffer is more than 60% faster in version 12.0 compared to 11.2 according to dtoa-benchmark: Function Time (ns) Speedup fmt11 34.471 1.00x fmt12 21.000 1.64x Added constexpr…

  • {fmt} 11.2.0major

    Added the s specifier for std::error_code. It allows formatting an error message as a string. For example: c++ #include int main() { auto ec = std::make_error_code(std::errc::no_such_file_or_directory); fmt::print("{:s}\n", ec); } prints No such file or directory (The actual message is platform-specific.) Fixed…

  • {fmt} 11.1.4

    Fixed ABI compatibility with earlier 11.x versions on Windows ( Improved the logic of switching between fixed and exponential format for float ( Moved is_compiled_string to the public API ( Thanks @SwooshyCueb. Simplified implementation of operator""_cf ( Thanks @LocalSpook. Fixed __builtin_strlen detection ( Thanks…

  • {fmt} 11.1.3

    Fixed compilation on GCC 9.4 ( Worked around an internal compiler error when using C++20 modules with GCC 14.2 and earlier ( Worked around a bug in GCC 6 ( Fixed an issue caused by instantiating formatter ( Thanks @timsong-cpp. Fixed formatting into std::ostreambuf_iterator when using format string compilation (…

  • {fmt} 11.1.2

    Fixed ABI compatibility with earlier 11.x versions ( Added wchar_t support to the std::bitset formatter ( Thanks @phprus. Prefixed CMake components with fmt- to simplify usage of {fmt} via add_subdirectory ( Updated docs for meson ( Thanks @trim21. Fixed a compilation error in chrono on nvcc ( Thanks @breyerml. Fixed…

  • {fmt} 11.1.1

    Fixed ABI compatibility with earlier 11.x versions ( Defined CMake components (core and doc) to allow docs to be installed separately ( Thanks @carlsmedstad.

  • {fmt} 11.1.0major

    Improved C++20 module support ( Thanks @kamrann and @Arghnews. Reduced debug (unoptimized) binary code size and the number of template instantiations when passing formatting arguments. For example, unoptimized binary code size for fmt::print("{}", 42) was reduced by ~40% on GCC and ~60% on clang (x86-64). GCC: Before:…

  • {fmt} 11.0.2

    Fixed compatibility with non-POSIX systems ( Fixed performance regressions when using std::back_insert_iterator with fmt::format_to ( Fixed handling of std::generator and move-only iterators ( Thanks @Arghnews. Made formatter ::parse work with types convertible to std::string_view ( Thanks @Arghnews. Made volatile…

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement. Contribution scanning is off for this project.

Why this score

Health 83Contribution friendliness 59computed 20h ago
  • Activity0.99
    20 merged PRs in 30 days (full marks at 20); 57 commits in 30 days (full marks at 60) [health score: no data for backlog pressure; weights renormalized]health
  • Onboarding0.50
    has mainstream build (CMake/Bazel/Meson), CI; missing contributing guide, docs site [contrib score: no data for entry points; weights renormalized]contrib
  • Maintainer responsiveness0.67
    median PR merge time 194 h (full marks within 72 h, zero after 60 days) [health score: no data for backlog pressure; weights renormalized] [contrib score: no data for entry points; weights renormalized]healthcontrib
  • Release cadence0.87
    last release 15 days ago (full marks within 90, zero after 730); 2 releases in 365 days (full marks at 4) [health score: no data for backlog pressure; weights renormalized]health
  • Contributor breadth0.68
    22 unique contributors in 90 days (full marks at 25); top contributor has 92% of commits; stars count for at most 5% of this signal [health score: no data for backlog pressure; weights renormalized]health

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.