Fast base64 encoding and decoding for ByteStrings

Version on this page:
LTS Haskell 8.12:
Stackage Nightly 2017-04-24:
Latest on Hackage:
BSD3 licensed and maintained by Bryan O'Sullivan

Fast base64 support

This package provides a Haskell library for working with base64-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 git repository:

  • git clone git://

And a Mercurial mirror:

  • hg clone

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


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

Depends on:
Used by 208 packages:
Deadpan-DDP, HPDF, HTF, Ketchup, Lucu, Spock, Spock-core, Tahin, WMSigner, abeson, airship, amazon-products, api-tools, atlassian-connect-core, atom-basic, authenticate-oauth, avers-server, aws, aws-cloudfront-signer, aws-dynamodb-streams, aws-ec2, aws-kinesis, aws-sdk, azurify, base64-conduit, battleships, bittorrent, blank-canvas, btree-concurrent, clientsession, cloudfront-signer, coinbase-exchange, conduit-combinators, configuration-tools, consul-haskell, crypto-pubkey-openssh, dataurl, diagrams-haddock, diagrams-svg, dingo-core, doc-review, dsc, duplo, ec2-signature, email-header, engine-io, env-parser, fb, fields-json, flowdock, flowdock-api, fmt, fpco-api, ghcjs-websockets, gitignore, gitit, givegif, glirc, google-oauth2-jwt, google-static-maps, groundhog, gssapi-wai, hOpenPGP, hackage-security, hackage-server, hackport, hails, handa-gdata, happstack-authenticate, happstack-jmacro, happstack-server, haskell-aliyun, haskell-tor, hasql-migration, haxr, hemokit, hgithub, hoodle-core, hoodle-extra, hoodle-render, htiled, http-client, http-common, http-dispatch, http-enumerator, http-streams, iCalendar, iap-verifier, ide-backend-common, idris, ihaskell, ihaskell-inline-r, ihaskell-magic, ihaskell-rlangqq, irc-core, jose, jsaddle, juandelacosa, keystore, lambdacube-compiler, lambdacube-gl, language-kort, latex-formulae-pandoc, line, lio-simple, log-elasticsearch, log-postgres, lucienne, mandrill, mangopay, mime-mail, mime-mail-ses, mole, mongoDB, mtgoxapi, multihash, netease-fm, network-service, nonce, ntrip-client, oauth10a, oauthenticated, octohat, openpgp-asciiarmor, pandoc, partly, pdf-slave, pdf-slave-template, pem, persistent, persistent-zookeeper, plist, plist-buddy, pontarius-xmpp, postgresql-simple-migration, postgrest, postmark-streams, praglude, project-template, property-list, pubnub, pwstore-fast, pwstore-purehaskell, rails-session, rethinkdb, rtcm, s3-signer, sasl, sbp, scholdoc, scotty-session, scrypt, serokell-util, servant-auth-cookie, servant-auth-hmac, servant-auth-server, servant-client, servant-server, serversession, serversession-backend-persistent, ses-html, simple, simple-session, smtp-mail, smtp-mail-ng, smtps-gmail, socketson, sproxy, sproxy2, sssp, stack, stdf, store, strelka, tablestorage, tamarin-prover-utils, tempo, text-conversions, text-ldap, thrift, twentefp-websockets, twill, typed-wire-utils, u2f, unbreak, wai-extra, wai-hmac-auth, wai-middleware-auth, wai-middleware-crowd, wai-middleware-etag, wai-middleware-hmac, wai-middleware-hmac-client, web-push, webdriver, webdriver-snoy, websockets, webwire, wrecker, xlsx, xmpipe, yesod-auth, yesod-auth-basic, yesod-auth-deskcom, yesod-bin, yesod-platform, yesod-static, yql, zerobin
comments powered byDisqus