# hex

> Hexadecimal encoding and decoding for Rust

Source: https://talira.ai/catalog/hex-hb94p481
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][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [KokaKiwi](https://talira.ai/orgs/kokakiwi.md)

hex is a small Rust crate for encoding data into hexadecimal strings and decoding hex back into bytes, originally extracted from rustc-serialize. It works in no_std environments by turning off its default std and alloc features, and an optional serde feature serializes and deserializes values as hex.

## Links

- GitHub: https://github.com/KokaKiwi/rust-hex
- Docs: https://docs.rs/hex

## Problems it solves

- convert bytes to a hex string in Rust
- decode a hexadecimal string into bytes in a Rust program
- hex-encode data in a no_std embedded Rust project

## Features

- encode bytes and strings to hex
- decode hex strings to bytes
- no_std support with optional alloc
- optional serde support

## Limitations

- Requires Rust 1.85 or newer[^1]

## Trust

Overall: 0.30 out of 1.
Signals: maintenance 0.27, adoption 0.49, momentum 0.15, community 0.51, backing 0.30, extensibility 0.00.

- 275 GitHub stars
- 18 contributors
- backed by KokaKiwi

Warnings:

- last commit 10 months ago

## Alternatives

- [base64](https://talira.ai/catalog/base64-2mcnpe33.md): Base64 encoding and decoding for Rust

## Sources

[^1]: https://github.com/KokaKiwi/rust-hex/blob/main/README.md (checked 27 Nov 2026)
[^2]: https://github.com/KokaKiwi/rust-hex/blob/main/Cargo.toml (checked 27 Nov 2026)
