Buf(1) Buf(1) (NAME) buf-convert - JSON (SYNOPSIS) buf convert [flags] (DESCRIPTION) proto proto/json . : $ buf convert --type= --from= --to= () .proto "buf build" BSR buf : $ buf convert example.proto --type=Foo.proto --from=payload.json --to=output.binpb () --from --to : $ buf convert example.proto#format=binpb --type=buf.Foo --from=payload#format=json --to=out#format=json () --from stdin : $ buf convert <(buf build -o -)#format=binpb --type=foo.Bar --from=<(echo "{ stdin --from: $ echo "{ stdin (): $ buf build -o - | buf convert -#format=binpb --type buf.Foo --from=payload.json BSR: $ buf convert --type buf.Foo --from=payload.json (OPTIONS) --disable-symlinks[=false] . Buf Schema Registry --error-format="text" (stderr). [text,json,msvs,junit,github-actions,gitlab-code- quality] --from="-" (payload) . [binpb,json,txtpb,yaml] -h, --help[=false] convert --to="-" . [binpb,json,txtpb,yaml] --type="" ( acme.weather.v1.Units) --validate[=false] --from protovalidate . https://github.com/bufbuild/protovalidate (OPTIONS INHERITED FROM PARENT COMMANDS) --debug[=false] (debug) --log-format="color" [text,color,json] --timeout=0s 0s (SEE ALSO) buf(1) (HISTORY) 2026-07-17 spf13/cobra Auto generated by spf13/cobra 2026-07-17 Buf(1)