# bytestring

> Fast, compact strict and lazy byte strings for Haskell

Source: https://talira.ai/catalog/bytestring-32f7sk6s
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / data structures / immutable](https://talira.ai/categories/libraries/data-structures/immutable), [libraries / text / strings](https://talira.ai/categories/libraries/text/strings)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Haskell Core Libraries Committee](https://talira.ai/orgs/haskell-clc.md)
- Creator: Don Stewart

bytestring is a core [Haskell](https://talira.ai/catalog/haskell-jjq1dx6f.md) library for binary and 8-bit character data. `Data.ByteString` is a strict, immutable, packed array of bytes with a list-style interface and fast string and IO operations; `Data.ByteString.Lazy` is a lazy list of chunks for processing multi-gigabyte data in constant memory; and `Data.ByteString.Builder` builds byte strings efficiently from small pieces during binary serialization. It's maintained by the Haskell Bytestring Team and the Core Libraries Committee.

## Links

- GitHub: https://github.com/haskell/bytestring
- Docs: https://hackage.haskell.org/package/bytestring

## Problems it solves

- read a large binary file in Haskell without using a lot of memory
- Haskell String is too slow for my byte data
- build a binary message efficiently in Haskell
- do fast IO on raw bytes in Haskell

## Features

- strict immutable byte arrays
- lazy chunked byte strings for very large data
- Builder for efficient binary serialization
- list-style interface
- fast string and IO operations

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.63, adoption 0.50, momentum 0.14, community 0.84, backing 0.50, extensibility 0.00.

- last commit 6 days ago
- 5 commits in the last 90 days
- latest release 0.11.0.0 6.2 years ago
- 301 GitHub stars
- 122 contributors
- backed by Haskell Core Libraries Committee
- created by Don Stewart

## Related

- Works with [Haskell](https://talira.ai/catalog/haskell-jjq1dx6f.md)

## Sources

[^1]: https://github.com/haskell/bytestring/blob/master/LICENSE (checked 23 Nov 2026)
[^2]: https://github.com/haskell/bytestring/blob/master/bytestring.cabal (checked 23 Nov 2026)
