First, validate Hex or Base64.
Hex needs two hexadecimal digits per byte. The workspace accepts whitespace and an optional leading 0x prefix. Base64 uses a different alphabet and, in this tool, requires a length divisible by four with padding where needed.
Do not paste a JSON string with its surrounding quotes, an HTTP header, or an entire packet dump into a binary input. Extract the actual payload first.
Valid Hex: 08 96 01
Same in Base64: CJYB
Truncated Hex: 08 96
Invalid Hex: 08 9G 01Then, locate a complete message.
The bytes 08 96 begin a field-1 varint whose continuation bit says another byte follows. Stopping there makes the value incomplete. A truncated message can result from copying only part of a response or reading the wrong length.
A transport can add bytes around Protobuf. A gRPC message has a five-byte message header before the payload; a stream can contain multiple framed messages. Compression may also apply. This workspace expects the Protobuf payload itself, not a full gRPC or HTTP body.
Example gRPC message (uncompressed):
00 00 00 00 03 | 08 96 01
00 compression flag
00 00 00 03 payload length: 3 bytes
08 96 01 Protobuf payload to decodeCheck the message type and imports.
Load the definition used by the sender and select its exact message type, including the package. A successful parse with a different message type is not evidence that the interpretation is correct: unknown fields may be skipped and some wire representations overlap.
Import related files together. The workspace resolves imports against the importing file, the supplied root paths and a shared uploaded top-level directory. Missing or ambiguous imports produce an error instead of selecting a file by a matching filename suffix.
- Confirm the package and fully qualified message name.
- Match field numbers and declared types, not just field names.
- Use a compatible schema version from the producer.
- If the sender uses Any, obtain the definitions for the embedded types as well.
Match the symptom to the next check.
| Symptom | Likely check | Next action |
|---|---|---|
| Odd-length Hex or invalid characters | Input representation | Remove wrappers and copy complete byte pairs. |
| Out of range / unexpected end | Truncation, framing or length | Compare the captured byte count with the actual payload boundary. |
| Invalid wire type | Wrong starting offset, corrupt bytes or framing | Inspect the first field tag and remove transport headers. |
| Unknown type or missing import | Schema loading | Upload the dependency tree and resolve imports. |
| Empty or surprising JSON | Wrong message type or defaults | Check the exact sender schema; inspect unknown fields without a schema. |
| Encoding fails after editing JSON | JSON type mapping | Check int64 strings, enum values, Base64 bytes and oneof members. |
Compare with a known-good message.
Before investigating a large payload, reproduce the tiny example below. If it works, your browser tool is processing a known valid message and you can narrow the investigation to your actual input or schema.
If the real message still fails, keep an unmodified copy and reduce a separate sample. Avoid deleting arbitrary bytes from a length-delimited field: its encoded length must agree with the bytes that follow.
syntax = "proto3";
message Example { uint32 id = 1; }
// Decode Hex 08 96 01 as Example.
// Expected id: 150Reference material
Use the specifications for details beyond these examples.