For a high performance serialization library for C#, the strongest matches are messagepack-csharp/messagepack-csharp (This library is a high-performance binary serializer for), neuecc/messagepack-csharp (This library is a high-performance binary serialization tool for) and google/protobuf (This is a high-performance binary serialization framework that provides). jamesnk/newtonsoft.json and google/flatbuffers round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
We curate open-source GitHub repositories matching “best c sharp serialization libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
MessagePack-CSharp is a high-performance binary serializer for .NET that converts C# objects to and from the compact MessagePack format. It uses compile-time source generation to produce AOT-safe formatters and resolvers, eliminating runtime reflection and enabling ahead-of-time compilation scenarios. The serializer encodes object fields as integer indices instead of string keys, producing compact binary output with deterministic field ordering, and provides stack-allocated reader and writer structs for direct encoding and decoding of MessagePack primitives without heap allocations. The libra
This library is a high-performance binary serializer for .NET that provides AOT-safe source generation, zero-allocation primitives, and built-in support for converting binary data to JSON, making it a comprehensive solution for your serialization needs.
MessagePack-CSharp is a high-performance binary serialization library for .NET applications that converts object graphs into the MessagePack format. It functions as a C# data serialization toolkit and a polymorphic binary encoder capable of handling abstract classes and interfaces using union keys to identify concrete derived types. The library provides a binary format transcoder to transform binary data into human-readable JSON for debugging. It supports ahead-of-time formatter generation to avoid runtime overhead and implements LZ4 binary compression to reduce the size of serialized data.
This library is a high-performance binary serialization tool for .NET that natively supports MessagePack, includes AOT code generation, and provides built-in utilities for JSON transcoding and compression.
Protocol Buffers is a binary serialization framework used to encode structured information into compact payloads to reduce network bandwidth and storage. It functions as a cross-language data interchange standard that enables different platforms and languages to exchange structured data using a shared schema. The project includes an interface definition language compiler that transforms schema definitions into type-safe source code for multiple target programming languages. This mechanism decouples data structures from specific language memory layouts and ensures consistent data handling acro
This is a high-performance binary serialization framework that provides robust schema evolution and cross-language support for .NET via its official C# implementation, though it focuses on binary formats rather than JSON.
Newtonsoft.Json is a data processing utility for the .NET ecosystem designed to facilitate the transformation and exchange of information. It functions as a serialization library and object mapping framework, enabling the conversion of complex application objects into formatted JSON strings and the reconstruction of structured objects from raw JSON data. The library distinguishes itself through a flexible architecture that supports both strongly-typed class mapping and a dynamic object model for schema-less data manipulation. It employs reflection-based metadata mapping to automate property a
Newtonsoft.Json is a widely-used, feature-rich library for JSON serialization and deserialization in .NET, though it lacks native binary serialization and has limited AOT compatibility compared to modern alternatives.
FlatBuffers is a cross-platform serialization library designed for performance-critical applications that require efficient, zero-copy data access. By organizing data in a structured binary format, it allows applications to read and write complex data structures directly from memory-mapped buffers without the need for intermediate parsing or temporary object allocation. The project distinguishes itself through a schema-driven approach that balances high-performance access with long-term data evolution. It utilizes a unique memory layout featuring relative offsets and inline fixed-size structu
FlatBuffers is a high-performance, schema-driven serialization library that supports C# and provides efficient binary data access with strong schema evolution capabilities, making it a robust choice for performance-critical .NET applications.
Protocol Buffers is a language-neutral, platform-agnostic mechanism for serializing structured data. It provides a schema-driven toolchain that compiles declarative data definitions into type-safe source code, enabling consistent communication and strongly typed API contracts across services written in different programming languages. The project distinguishes itself through a highly efficient binary wire format that utilizes tag-based encoding and variable-width integer compression to minimize payload size and processing overhead. It supports robust evolutionary schema management, allowing d
This is a language-neutral serialization framework that provides high-performance binary and JSON support for .NET through its official C# implementation, making it a standard choice for schema-driven data exchange.
protobuf-net is a binary serialization framework and .NET library that implements the Protocol Buffers specification. It functions as a schema-based serialization tool and contract-first data mapper, converting complex object graphs into a compact binary format for storage and network transmission. The library enables cross-platform data exchange and high-performance networking by reducing payload sizes and processing time. It specifically supports object hierarchy persistence, allowing the serialization and reconstruction of complex class structures that include inheritance and derived types
This is a high-performance binary serialization library for .NET that implements the Protocol Buffers specification, making it a strong choice for compact data exchange and object persistence.
CapnProto is a zero-copy serialization framework and remote procedure call system. It serves as a C++ communication library providing a schema-based data interchange format that eliminates the need to encode or decode data before reading it from memory. The system enables high-performance data serialization and low-latency network communication. It supports cross-language data exchange by using a defined schema to ensure consistent binary representation across different platforms. The framework provides tools for implementing remote procedure calls, allowing functions to be invoked on a remo
This is a C++ framework for zero-copy serialization and RPC, which does not provide the native C#/.NET libraries or integration required for your ecosystem.
Fory is a cross-language serialization framework and binary data serializer designed to convert complex object graphs into a compact binary format for high-performance data exchange. It includes an IDL-based schema compiler to transform interface definition language files into type-safe native data models and a schema evolution manager to maintain forward and backward compatibility. The project features a zero-copy data access layer that allows reading specific fields from binary rows without deserializing the entire object. It supports dual-mode serialization, enabling a toggle between a por
This is a cross-language serialization framework designed for high-performance binary data exchange, but it is not a native C#/.NET library and lacks the specific ecosystem integration required for .NET serialization tasks.
MagicOnion is a .NET RPC framework used to build type-safe remote procedure call services using shared interfaces for communication between servers and clients. It functions as a binary serialization framework and a distributed service orchestrator, providing a network layer for low-latency streaming and real-time data exchange. The project distinguishes itself through an AOT-compatible network client that uses source generators to support ahead-of-time compilation in restricted runtime environments. It enables bidirectional communication and real-time data streaming, allowing servers and mul
MagicOnion is a high-performance RPC framework that uses binary serialization internally for network communication, but it is not a general-purpose serialization library for developers to use independently.
Aleth is an Ethereum C++ client and full-node implementation. It provides a virtual machine executor for running and debugging bytecode, a blockchain state debugger, and a serialization library for encoding and decoding data using the Recursive Length Prefix format. The project includes a dedicated mining tool for producing blocks and benchmarking hashing hardware performance. It further distinguishes itself with a state debugger that analyzes pre- and post-execution state changes and generates step-by-step execution traces for the virtual machine. The implementation covers node operations i
This is a C++ Ethereum client that includes a specialized RLP serialization component, but it is not a general-purpose C#/.NET serialization library as requested.
Skynet is a distributed game server framework designed for building scalable online game backends. It utilizes distributed actor-based clusters and real-time network communication to manage high-concurrency session coordination across multiple nodes. The framework includes a cluster management orchestrator for coordinating services via cluster-wide messaging and dynamic configuration updates. It features a multi-protocol network gateway supporting TCP, UDP, and WebSockets, alongside a data encoding layer using BSON and Sproto serialization for efficient information transfer between distribute
This is a distributed game server framework rather than a standalone C# serialization library, and while it includes internal data encoding modules, it is not a tool designed for general-purpose .NET serialization tasks.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| messagepack-csharp/messagepack-csharp | 6.6K | C# | other | |
| neuecc/messagepack-csharp | 6.7K | C# | NOASSERTION | |
| google/protobuf | 71.4K | C++ | NOASSERTION | |
| jamesnk/newtonsoft.json | 11.3K | C# | mit | |
| google/flatbuffers | 25.6K | C++ | apache-2.0 | |
| protocolbuffers/protobuf | 71.4K | C++ | NOASSERTION | |
| mgravell/protobuf-net | 5K | C# | NOASSERTION | |
| capnproto/capnproto | 13.1K | C++ | NOASSERTION | |
| apache/fory | 4.2K | Java | apache-2.0 | |
| cysharp/magiconion | 4.4K | C# | MIT |