skillfed

unpaddedbase64

Encode and decode Base64 without "=" padding

unpaddedbase64 v2.1.0 1.7M downloads/30d#3,604 on PyPI11
Permissive license Apache-2.0 Abandoned released

What it is and what it does

This package provides encode and decode functions for Base64 data formatted without the "=" padding characters that RFC 4648 specifies. Many protocols—particularly in distributed systems and cryptographic applications—omit padding for efficiency or protocol design reasons, and this library handles that variant directly rather than requiring manual padding manipulation.

The package is a thin, focused utility with no external dependencies. It supports Python 3.6 through 3.9 and is licensed under Apache-2.0. Development stopped in 2021, so it is stable but receives no active maintenance or updates.

Use it for:

  • Decode Base64 strings from protocols like Matrix that omit padding characters
  • Encode binary data to unpadded Base64 for APIs that reject or strip trailing equals signs
  • Handle cryptographic token formats that use unpadded Base64 encoding
  • Parse JWT or similar token schemes that use Base64url without padding

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Encodes and decodes Base64 data without RFC 4648 padding characters, supporting protocols that omit the trailing "=" bytes.

Yes, if you need unpadded Base64 handling and accept the abandoned maintenance status. The package is simple, dependency-free, and has no known vulnerabilities. However, for new projects, consider whether the standard library base64 module with manual padding removal would suffice, since this package will not receive updates.

Install

unpaddedbase64 on PyPI

pip

pip install unpaddedbase64

uv

uv add unpaddedbase64

poetry

poetry add unpaddedbase64

Installing unpaddedbase64

Before you install

Low friction install with no runtime dependencies. Package is abandoned as of 2021-10-25 with no recent maintenance, though it remains stable and archived repository shows 11 stars.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it safe for most projects.

Quickstart

pip install unpaddedbase64

import unpaddedbase64
encoded = unpaddedbase64.encode_base64(b'\x00')
decoded = unpaddedbase64.decode_base64('AA')

Requires Python >=3.6,<4.0

Verify before relying

  • Whether the abandoned status and lack of updates since 2021 pose any compatibility risk with modern Python versions beyond 3.9
  • Performance characteristics compared to standard library base64 module with manual padding removal

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.6,<4.0)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 1,984 days since the last release
Last repo commit
First released
Downloads 1,737,143/month — #3,604 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: unpaddedbase64-2.1.0-py3-none-any.whl

Keywords: base64

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

base64 without paddingunpadded base64 encode decodebase64 no equals signsrfc 4648 base64 variantstrip base64 paddingbase64 padding removal
base64-encodingcryptography-utility

More Cryptography packages