# snappy-java

> Fast Snappy compression and decompression for Java

Source: https://talira.ai/catalog/snappy-java-7q6y9k73
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / compression](https://talira.ai/categories/libraries/compression), [languages / java](https://talira.ai/categories/languages/java)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [xerial](https://talira.ai/orgs/xerial.md)

snappy-java is a Java port of Snappy, Google's fast C++ compressor and decompressor. It uses JNI to reach speeds comparable to the native version, bundles native libraries for Windows, macOS, Linux and others and loads the right one for the machine, and stays safe with multiple class loaders such as Tomcat's. It compresses byte data and Java primitive arrays, with a BitShuffle step to improve their ratio, supports Snappy's framing format, and works as an OSGi bundle.

## Links

- GitHub: https://github.com/xerial/snappy-java

## Problems it solves

- compress data quickly in a Java app
- use Snappy compression from the JVM
- read and write Snappy-framed streams in Java

## Features

- Snappy compression and decompression at around 200 to 400 MB/s
- JNI-based, with performance comparable to native Snappy
- bundled native libraries for Windows, macOS, Linux and more
- compresses Java primitive arrays, with BitShuffle to improve ratios
- Snappy framing format
- OSGi support and low memory use

## Limitations

- Its compression ratio is modest, about the same as LZF: Snappy aims at speed rather than size.[^1]

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.85, adoption 0.61, momentum 0.26, community 0.77, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 37 commits in the last 90 days
- latest release v1.1.10.12 50 days ago
- 1.1k GitHub stars
- 85 contributors
- backed by xerial

## Related

- Based on [Snappy](https://talira.ai/catalog/snappy-k5vwjdkm.md)

## Sources

[^1]: https://github.com/xerial/snappy-java/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/xerial/snappy-java/blob/main/LICENSE (checked 28 Nov 2026)
