# base64

> Base64 encoding and decoding for Rust

Source: https://talira.ai/catalog/base64-2mcnpe33
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / encoding](https://talira.ai/categories/libraries/encoding)
- Licence: MIT OR Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Marshall Pierce](https://talira.ai/orgs/marshall-pierce.md)

base64 is the Rust crate for encoding and decoding base64, as bytes or UTF-8. It aims to be correct and fast, and offers several levels of abstraction: decode into an existing buffer for speed (about 2.6 GiB/s for a 3 KiB input) or into a new Vec for convenience. It is dual licensed under MIT or Apache 2.0.

## Links

- GitHub: https://github.com/marshallpierce/rust-base64
- Docs: https://docs.rs/base64

## Problems it solves

- encode bytes as base64 in Rust
- decode a base64 string in my Rust program quickly
- base64 encode data without allocating in Rust

## Features

- encode and decode base64 as bytes or UTF-8
- decode into an existing buffer or a new Vec

## Trust

Overall: 0.50 out of 1.
Signals: maintenance 0.69, adoption 0.57, momentum 0.25, community 0.72, backing 0.30, extensibility 0.00.

- last commit 10 days ago
- 13 commits in the last 90 days
- 741 GitHub stars
- 62 contributors
- backed by Marshall Pierce

## Alternatives

- [hex](https://talira.ai/catalog/hex-hb94p481.md): Hexadecimal encoding and decoding for Rust

## Sources

[^1]: https://github.com/marshallpierce/rust-base64/blob/master/Cargo.toml (checked 28 Nov 2026)
