BCS Online Encoder
Binary Canonical Serialization Encoder
Convert your data to BCS format for Move-based blockchains
How to Use BCS Online Encoder
1. Encode Basic Types
Select a data type from the dropdown and enter your value:
- •Numbers: u8, u16, u32, u64, u128, u256
- •String: Any text value
- •Boolean: true or false
- •Address: Hex address (e.g., 0x1)
2. Encode Decimal Numbers
Use FixedPoint or BigDecimal for decimal values:
- •FixedPoint32/64: Enter decimal like 1.5, 0.25
- •BigDecimal: Large decimal numbers with 18 decimal places
3. Encode Custom Types
Select "Custom Type" to encode complex structures:
Vector Example:
// Type Definition
vector<u64>
// Input Value
[1, 2, 3, 4, 5]
Struct Example:
// Type Definition
struct ABC { a: u64, b: string }
// Input Value
{"a": 100, "b": "hello"}
Option Example:
// Type Definition
option<u64>
// Input Value (Some)
123
// Input Value (None)
null
4. Choose Output Format
Select your preferred encoding format:
- •Hexadecimal: Standard hex format (e.g., 0a1b2c)
- •Base64: Base64 encoded string
- •Base58: Base58 encoded string
About BCS Encoding
Binary Canonical Serialization (BCS) is the serialization format used in Move-based blockchains. It provides a deterministic way to serialize data structures into binary format.