Parsing JSON at the speed of memory

Parsing gigabytes of JSON per second

JSON is everywhere on the Internet. Servers spend a lot of time parsing it. We need a fresh approach.

$ brew install simdjson$ apt install libsimdjson-dev$ vcpkg install simdjson
quickstart.cpp
#include "simdjson.h"
using namespace simdjson;

int main() {
  ondemand::parser parser;
  padded_string json = padded_string::load("twitter.json");
  ondemand::document tweets = parser.iterate(json);
  std::cout << uint64_t(tweets["search_metadata"]["count"])
            << " results." << std::endl;
}
up to 25GB/s
Parsing throughput
25×
Faster than JSON for Modern C++
Why simdjson

Highlights

Fast

Over 4× faster than RapidJSON and 25× faster than JSON for Modern C++.

Easy

First-class, easy-to-use, and carefully documented APIs.

Strict

Full JSON and UTF-8 validation, lossless parsing. Performance with no compromises.

Automatic

Selects a CPU-tailored parser at runtime. No configuration needed.

Reliable

From memory allocation to error handling, simdjson's design avoids surprises.

Peer Reviewed

Research published in VLDB Journal and Software: Practice and Experience.

Get started

Three lines from install to parse

simdjson ships as a header-only library and is packaged everywhere — Ubuntu, Debian, Fedora, Arch, Alpine, FreeBSD, Homebrew, vcpkg, conan, MSYS2. Drop it in, point it at JSON, get blazing fast results.

Quick start guide API reference

Prefer a dependency-free drop-in? Grab the amalgamated release, then add simdjson.h and simdjson.cpp straight to your C++ project — no package manager, no build system required. Download singleheader.zip

install.sh
# macOS
$ brew install simdjson

# Ubuntu / Debian
$ apt install libsimdjson-dev

# vcpkg
$ vcpkg install simdjson
Python

fastsimdjson: simdjson for Python

Our official Python binding is a drop-in replacement for the json module's loads, load, dumps and dump, and it can be over 3× faster than the standard library.

  • Lazy parse when you need only part of a document, with JSON Pointer.
  • NDJSON streams, on many threads with free-threaded Python.
  • dumpb writes the same bytes as orjson.dumps, as fast as orjson.
  • NDJSON to Apache Arrow tables and back, for pyarrow, polars or DuckDB.
  • JSON to MessagePack and back, 3 to 4× as fast as orjson with ormsgpack.

Wheels for Linux, macOS and Windows, Python 3.10 to 3.15, including free-threaded Python.

fastsimdjson on GitHub PyPI

example.py
# pip install fastsimdjson
import fastsimdjson

fastsimdjson.loads(b'{"a": [1, 2.5, "x", true, null]}')
# {'a': [1, 2.5, 'x', True, None]}

doc = fastsimdjson.parse(open("twitter.json", "rb").read())
doc.at_pointer("/statuses/0/user/name")
The simdjson family

JSON to Arrow and MessagePack

Two new C++17 libraries built on simdjson. Like simdjson, each is one header and one source file, with a C interface too.

Arrow

simdjson_arrow

Reads newline-delimited JSON into Apache Arrow record batches, and writes them back, on one thread or many. Several times faster than Arrow C++'s own JSON reader. Results are Arrow C Data Interface structures, usable without a copy by Arrow C++, nanoarrow or DuckDB. Read more →

MessagePack

simdjson_msgpack

Converts JSON to the most compact MessagePack and back, one document or NDJSON streams on many threads. Faster than the usual ways of doing it in C and C++ (yyjson, RapidJSON with mpack, nlohmann::json). Read more →

Features

Features

25 GB/s

On-Demand API

A radically new approach to parsing JSON documents at memory speed.

build

Build JSON

Generate JSON strings at gigabytes per second. Read more →

12 GB/s

Minify

Strip whitespace from JSON streams without parsing. Read more →

30 GB/s

UTF-8 Validation

Standalone validation that's faster than memcpy on some workloads. Read more →

3.5 GB/s

Multithreaded NDJSON

Crunch gigantic newline-delimited JSON streams at multi-GB/s. Read more →

query

JSON Pointer & JSONPath

Drill into a document by path without unboxing the whole thing. Read more →

safe

Errors, your way

Pick exceptions or error codes. Compile with or without exceptions. Read more →

auto

Runtime dispatch

Detects AVX-512, AVX2, NEON, RISC-V, Loongarch, POWER — ships one binary. Read more →

C++26

Reflection & custom types

Plug in your own data types via tag_invoke or C++26 static reflection.

Used in production

Trusted by infrastructure that ships

simdjson powers JSON parsing inside engineering teams at the scale where every cycle counts.

Official Python bindings: fastsimdjson. And a dozen more ports & bindings — Python, R, Ruby, PHP, C#, Rust, Swift, Go, Erlang, Lua, Haskell. See them all →