If you've ever worked with Protocol Buffers, you've probably needed to inspect a binary payload at some point.
Maybe you're debugging a gRPC request, investigating a message from Kafka, or trying to understand what data is actually inside a serialized Protobuf message.
The usual workflow often involves switching between your IDE, command-line tools, custom scripts, or online decoders.
I wanted something simpler.
So I built Protobuf Inspector, a free and open-source VS Code extension that lets you decode and encode Protobuf messages directly inside your editor.
What is Protobuf Inspector?
Protobuf Inspector makes it possible to work with serialized Protobuf messages without leaving VS Code or installing additional command-line tools.
It uses your existing .proto schema files to understand the message structure and provides a simple interface for encoding and decoding data.
VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=anotakrobag.protobuf-inspector
Decode Protobuf binary into JSON
Have a Base64 or Hex-encoded Protobuf payload?
Open your .proto file, find the message definition, and click the Inspect CodeLens action above it.
In the Decode tab:
- Paste your Base64 or Hex payload.
- Select the appropriate input format.
- Click Decode.
- Inspect the resulting JSON.
You can see the decoded field names and values using the actual message schema.
This is especially useful when debugging serialized messages or investigating data exchanged between services.
Encode JSON into Protobuf binary
The reverse workflow is supported too.
Switch to the Encode tab, provide your JSON data, and click Encode.
The extension serializes the JSON using the selected Protobuf message definition and gives you the resulting binary payload in Base64 or Hex format.
You can then use that payload for testing, debugging, or other development workflows.
Generate JSON templates automatically
Not sure which fields a message contains?
Instead of manually creating a JSON structure, use the Generate Template button.
Protobuf Inspector generates a JSON skeleton based on your message definition. This makes it easier to get started with a message, especially when working with larger schemas.
Work directly from your .proto files
One of the main goals was to keep the workflow as simple as possible.
Protobuf Inspector integrates directly into VS Code using CodeLens.
Open a .proto file and you'll find an Inspect [MessageName] action above each message definition.
Click it and the corresponding encode/decode panel opens.
You can also open the panel through the VS Code Command Palette.
Completely free and open source
Protobuf Inspector is free to use and open source.
There are no external CLI tools or dependencies to install. Everything runs directly inside VS Code.
VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=anotakrobag.protobuf-inspector
I'd love to hear your feedback!
I built this extension to make working with Protobuf messages a little easier, especially when debugging and inspecting serialized data.
If you work with Protobuf, gRPC, or .proto files, I'd be interested to hear:
- How do you currently inspect Protobuf binary payloads?
- Which tools do you use for encoding and decoding?
- What features would make this extension more useful for your workflow?
Suggestions, feedback, bug reports, and contributions are all welcome!
Thanks for checking it out! 🚀
