Fast base16 (hex) encoding and decoding for ByteStrings

Version on this page:
LTS Haskell 11.1:
Stackage Nightly 2018-03-23:
Latest on Hackage:

See all snapshots base16-bytestring appears in

BSD3 licensed and maintained by Bryan O'Sullivan

Module documentation for

Fast base16 support

This package provides a Haskell library for working with base16-encoded data quickly and efficiently, using the ByteString type.


This library is written in pure Haskell, and it's fast:

  • 250 MB/sec encoding

  • 200 MB/sec strict decoding (per RFC 4648)

  • 100 MB/sec lenient decoding

Get involved!

Please report bugs via the github issue tracker.

Master github repository:

  • git clone git://

There's also a Mercurial mirror:

  • hg clone

(You can create and contribute changes using either git or Mercurial.)


This library is written and maintained by Bryan O'Sullivan, .

comments powered byDisqus