DevToolBox免费
博客

Protobuf 解码器在线 — 免费解码 Protocol Buffers

无需 .proto 架构文件即可解码 Protocol Buffers 二进制数据。从十六进制或 Base64 输入检查 protobuf 线格式。免费在线 protobuf 解码器。

关于 Protobuf 解码器

Protocol Buffers(protobuf)是 Google 开发的二进制序列化格式。此工具无需 .proto 架构文件即可解码原始 protobuf 二进制数据。它可识别字段号、线类型,并尝试将值解释为字符串、数字或嵌套消息。支持十六进制和 Base64 输入格式。

𝕏 Twitterin LinkedIn

评价此工具

3.9 / 5 · 235 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

How to Use Protobuf Decoder

  1. Obtain protobuf binary data from network traffic, gRPC calls, or file output
  2. Paste the data as hex bytes (e.g., 08 96 01) or Base64-encoded string
  3. Click decode to parse the binary wire format without needing a .proto schema
  4. Inspect decoded field numbers, wire types, and interpreted values
  5. Use the 'Sample' button to see an example of protobuf decoding

Common Use Cases

  • Debugging gRPC service communication by inspecting protobuf payloads
  • Reverse-engineering unknown protobuf messages without schema definitions
  • Validating protobuf serialization output during development
  • Inspecting protobuf data captured from network traffic analysis
  • Understanding protobuf wire format encoding for educational purposes

Frequently Asked Questions

What are Protocol Buffers (protobuf)?
Protocol Buffers is a language-neutral, platform-neutral binary serialization format developed by Google. It's used to serialize structured data for communication between services, data storage, and more. Protobuf is more compact and faster than JSON or XML.
Can I decode protobuf without a .proto schema file?
Yes. This tool performs schema-less decoding by parsing the raw wire format. It identifies field numbers and wire types, and attempts to interpret values as integers, strings, or nested messages. However, without a schema, field names and exact types are unknown.
What is the difference between protobuf and JSON?
Protobuf is a binary format that is smaller (3-10x) and faster to parse than JSON. JSON is human-readable and self-describing. Protobuf requires a schema (.proto file) for proper encoding/decoding, while JSON is schema-optional. Protobuf is preferred for high-performance inter-service communication.
How is protobuf used in gRPC?
gRPC uses protobuf as its default serialization format. Service interfaces and message types are defined in .proto files, which generate client and server code. When gRPC sends data over the network, messages are serialized to protobuf binary format.
What are protobuf wire types?
Protobuf uses wire types to indicate how values are encoded: Varint (0) for integers, 64-bit (1) for fixed64/double, Length-delimited (2) for strings/bytes/nested messages, and 32-bit (5) for fixed32/float. The wire type is encoded alongside the field number in the binary data.
How do I get protobuf data from network traffic?
Use tools like Wireshark, Charles Proxy, or browser DevTools to capture gRPC or HTTP/2 traffic. Extract the protobuf payload bytes and paste them as hex into this decoder. For gRPC-Web traffic, the payload is often Base64-encoded.
Is protobuf binary data safe to paste into this tool?
Yes. All decoding is performed locally in your browser. No data is sent to any server. Your protobuf payloads remain private and are never stored or logged.

💬 User Feedback

Have suggestions or found a bug? Leave a message and we'll get back to you.
0/2000