What are the differences between proto2 and proto3?

Last updated 8 July 2026

  • proto3 removed required and custom default values, so fields are implicitly optional with type-based defaults only.

  • proto2 always tracks scalar presence. proto3 couldn't distinguish unset from default until optional was reintroduced.

  • Both share the same wire format. proto3 requires the first enum value to be 0, has better JSON mapping, and is the recommended default for gRPC.

  • https://kreya.app/blog/protobuf-editions-explained/
  • https://www.hackingnote.com/en/versus/proto2-vs-proto3/
  • https://protobuf.dev/programming-guides/proto3/
  • https://victorpierre.dev/blog/introduction-to-protobuf/
  • https://grpc.io/docs/what-is-grpc/introduction/
  • https://buf.build/blog/protobuf-editions-are-here
All gRPC interview questions