# Decoding base64 in Python at 10 gigabytes per second

DevFeed: [Decoding base64 in Python at 10 gigabytes per second](<https://devfeed.tech/articles/decoding-base64-in-python-at-10-gigabytes-per-second-89214.md>)

Original publisher: [Read original article](<https://lemire.me/blog/2026/10/17/decoding-base64-in-python-at-10-gigabytes-per-second/>)

Author: Daniel Lemire

Published: 2026-10-17T04:40:34Z

Content type: article

Language: en

Sources: [Daniel Lemire](<https://devfeed.tech/sources/daniel-lemire.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Decoding](<https://devfeed.tech/topics/decoding.md>)

Tags: [base64](<https://devfeed.tech/tags/base64.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [python](<https://devfeed.tech/tags/python.md>)

## AI overview

The post introduces fastpybase64, a Python drop-in replacement for the standard base64 module built on simdutf. In a single-thread benchmark using MIME-style line breaks, it reports decoding four times faster than pybase64 and 27 times faster than Python's standard library. The package is available for Python 3.10 through 3.14 on Linux, macOS, and Windows.

## Source excerpt

We sometimes need to convert binary data to text. For example, your emails must be stored as text files. Naïvely, you could just use a string of 0 and 1, but it would mean using one character per bit. We can do better by using 64 ASCII characters: all letters, all numbers, plus a few ... Continue reading Decoding base64 in Python at 10 gigabytes per second