RFC 4648-compliant Base32 encodings/decodings

Version on this page:
LTS Haskell 22.11:0.4
Stackage Nightly 2023-12-26:0.4
Latest on Hackage:0.4

See all snapshots base32 appears in

BSD-3-Clause licensed by Emily Pillmore
Maintained by [email protected]
This version can be pinned in stack with:base32-,2093

Module documentation for

Depends on 3 packages(full list with versions):
Used by 1 package in lts-16.11(full list with versions):


Build Status Hackage

Padded and unpadded base32 and base32hex encoding and decoding for Text and ByteString values.

For the companion optics and pattern synonyms, see base32-lens.


What does this library provide? Here is the summary:

  • Support for padded and unpadded Base32 and Base32hex
  • Support for Text encodings and decodings
  • Optics for handling more complex structures with Base32 representations via the base32-lens package
  • Checks for both valid Base32 and correct Base32 and Base32hex encodings

There are no dependencies aside from those bundled with GHC:

base32 dependencies


Revision history for base32 – 2020-02-16

  • Documentation now references correct RFC section

0.1.1 – 2020-02-16

  • Textual interface now uses correct unpadded version – 2020-02-16

  • First version. Released on an unsuspecting world.