BCS Online Decoder
Binary Canonical Serialization Decoder
Convert BCS format back to readable data
How to Use BCS Online Decoder
1. Select Input Format
Choose the format of your encoded BCS data:
- •Hexadecimal: Standard hex format (e.g., 0a1b2c)
- •Base64: Base64 encoded string
- •Base58: Base58 encoded string
2. Choose Decode Type
Select what type the encoded data represents:
- •Basic Types: string, bool, u8-u256, address
- •Decimal Types: FixedPoint32/64, BigDecimal
- •Custom Types: vectors, structs, options
3. Decode Custom Types
For complex structures, define the type schema:
Vector Example:
// Type Definition
vector<u64>
// Decoded Output
[1, 2, 3, 4, 5]
Struct Example:
// Type Definition
struct ABC { a: u64, b: string }
// Decoded Output
{"a": 100, "b": "hello"}
Option Example:
// Type Definition
option<u64>
// Decoded Output (Some)
123
// Decoded Output (None)
null
4. Decoding Tips
- •You must know the original type to decode correctly
- •Hex strings can include or omit the 0x prefix
- •Large numbers (u64, u128, u256) are returned as strings
- •Complex types are displayed as formatted JSON
About BCS Decoding
Binary Canonical Serialization (BCS) is the serialization format used in Move-based blockchains. This decoder converts BCS binary data back into readable values.