Protobuf Formatter
Format Protocol Buffer definition files.Runs in this tab.⌘ ↵ runs it
Next step
AtriumKitFrom the team behind browserutils
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeAbout Protobuf Formatter
Free online Protobuf formatter. Beautify .proto files with proper indentation, clean spacing, and consistent structure for readable Protocol Buffer definitions. It runs in your browser. Nothing is sent to a server.
Questions
What indentation does the formatter use?
The Protobuf formatter uses 2-space indentation, which is the standard convention for .proto files.
Does it handle all proto3 syntax?
Yes, the formatter handles message, enum, service, rpc, oneof, map, repeated, import, option, and package declarations with proper indentation and spacing.
Can I format proto2 files with this tool?
Yes, the formatter supports both proto2 and proto3 syntax. Keywords like required, optional, and extensions from proto2 are recognized and formatted correctly.
Does the Protobuf formatter preserve comments?
Yes, both single-line (//) and multi-line (/* */) comments within .proto files are preserved in their relative positions after formatting.
Comments
More in Formatters & Beautifiers
- HTML Formatter
- CSS Formatter
- JavaScript Formatter
- SQL Formatter
- XML Formatter
- Markdown Preview
- CSS Minifier
- HTML Minifier
Comments