Skip to main content

🎮 RGB Playground

Encode and decode RGB ids, hashes and invoices for both RGB lines (v0.11 and v0.12) in your browser.

📝 Encoding Tools

Baid64 ids in the formats of both RGB lines (rgb: for v0.11, contract: for v0.12), tagged SHA-256, and an invoice parser.

Baid64 encoder and decoder

A port of the baid64 crate 0.4.x used by both RGB lines: Base64 with the alphabet A–Z a–z 0–9 _ ~, an optional prefix, - chunks (8 characters, then 7), and a 4-byte checksum h[0] h[1] h[1] h[2] of h = SHA-256(SHA-256(prefix) ‖ payload), embedded or shown as three words after #. See Encoding formats.

Settings from rgb-consensus 0.11.1 src/operation/commit.rs.
rgb:Ca0d5l5K-Cr4Wm6I-owUkn6t-2NHrgjk-R1KRreF-tVBhAR0
rgb:Ca0d5l5K-Cr4Wm6I-owUkn6t-2NHrgjk-R1KRreF-tVBhAR0
contract:Ca0d5l5K-Cr4Wm6I-owUkn6t-2NHrgjk-R1KRreF-tVBhAR0
Ca0d5l5KCr4Wm6IowUkn6t2NHrgjkR1KRreFtVBhAR0=
The same bytes print differently per id type, and the checksum depends on the prefix, so an id from one type or line doesn't parse as another. Random bytes give a well-formed string, not an id of anything that exists.

Why Use the Playground?

🚀

Learn by Doing

Decode real ids and invoices from both RGB lines and see how their parts fit together.

🔒

100% Client-Side

All processing happens in your browser. Your data is never sent to any server.

⚡

Instant Feedback

See results immediately as you type. No waiting, no setup, no compilation.

🎯

Checked against the real code

The Baid64 and tagged-hash tools are ports of the baid64 0.4.x and commit_verify code, and reproduce real ids from rgb-cmd 0.11.1 and rgb-wallet 0.12.0-rc.3. The contract builder and the consignment diagram are illustrative only.

Ready to Build for Real?

Install a pinned CLI for either RGB line and try it on regtest

Get Started →