Protobuf Decoder Online
.proto schema ke bina ek Protocol Buffers binary message ko apne browser mein decode karein. Aapke bytes aapke device par rehte hain.
Aapke protobuf bytes locally aapke browser mein decode hote hain aur kabhi upload nahi hote, par aise messages paste karne se bachein jinme real secrets ya personal data ho.
JWT decode karna hai? JWT Decoder try karein.
Protobuf Decoder ke baare mein
Yeh protobuf decoder ek Protocol Buffers binary message ko seedha uske bytes se padhta hai, bina kisi .proto file ke. Payload ko hex ya base64 ke roop mein paste karein aur decoder raw wire format ko walk karta hai: yeh har tag ko padhkar field number aur wire type recover karta hai, phir value ko interpret karta hai. Varints ko int64, uint64 aur zig-zag readings ke roop mein dikhaya jaata hai; fixed64 aur fixed32 fields apne integer, double aur float views expose karte hain; aur length-delimited fields ko pehle nested messages, phir UTF-8 text, phir raw hex bytes ke roop mein try kiya jaata hai. Result ek indented field tree ke roop mein render hota hai, jisme repeated fields ek hi number ke neeche group hote hain. Yeh un engineers ke liye banaya gaya hai jo gRPC traffic, captured packets, ya logs ke opaque proto blobs debug karte hain. Sab kuch aapke browser mein chalta hai, isliye aap jo bytes paste karte hain woh locally decode hote hain aur kabhi aapke device se bahar nahi jaate.
Features
- .proto schema ki zaroorat ke bina kisi bhi Protocol Buffers message ko raw bytes se decode karta hai
- Auto-detection aur manual format toggle ke saath hex ya base64 input accept karta hai
- Tag se varint, fixed64, length-delimited aur fixed32 wire types padhta hai
- Varints ko int64, uint64, signed zig-zag aur boolean interpretations ke roop mein dikhata hai
- fixed64/fixed32 fields ko integer, double aur float views plus raw bytes ke roop mein render karta hai
- Nested messages ko recursively decode karta hai aur UTF-8 strings ya hex bytes par fall back karta hai
- Repeated fields ko ek indented tree mein ek hi field number ke neeche group karta hai
- Truncated, malformed ya non-protobuf input ke liye ek clear error report karta hai
Protobuf Decoder kaise use karein
- Apna protobuf payload ek hex string ya base64 ke roop mein copy karein.
- Use Protobuf message box mein paste karein.
- Format ko Auto par rehne dein, ya agar detection galat ho to Hex ya Base64 pick karein.
- Decoded field tree padhein, values inspect karne ke liye nested messages expand karein.
Example
Input
08 96 01 12 07 74 65 73 74 69 6e 67
Output
#1 varint wire 0 150
#2 string wire 2 "testing"
Field 1 ek varint (150) hai aur field 2 ek length-delimited UTF-8 string hai.
Common errors aur troubleshooting
- Decoder "Input is not valid hex" ya "Input is not valid base64" dikhata hai. — Format toggle ko apne data se match karein, ya stray characters hatayein; hex 0-9a-f ke pairs hone chahiye aur base64 ko standard ya URL-safe alphabet use karna chahiye.
- Ek field jo string honi chahiye thi woh nested message ya raw hex ke roop mein render hoti hai. — .proto file ke bina decoder bytes se andaaza lagata hai; length-delimited fields ambiguous hote hain, isliye ek sub-message jo galti se text jaisi dikhe, ya iska ulta, galat read ho sakti hai.
- Decoding "Length-delimited field runs past the end of the input" ke saath fail hoti hai. — Payload truncated hai ya asal mein protobuf nahi hai. Poora message dobara capture karein aur confirm karein ki aapne har byte copy kiya, trailing wale bhi.
- Group wire types unsupported report hote hain. — Wire types 3 aur 4 (start-group/end-group) protobuf mein deprecated hain aur shaayad hi emit hote hain; message ko groups ki jagah proto2/proto3 fields ke saath dobara encode karein.
Aksar pooche jaane wale sawaal
- Kya main .proto file ke bina protobuf decode kar sakta hoon?
- Haan. Yeh protobuf decoder raw wire format padhta hai, isliye yeh har field number, wire type aur value ko seedha bytes se recover karta hai. Schema ke bina yeh original field names nahi jaan sakta ya yeh ki koi number signed, unsigned ya enum value ke roop mein socha gaya tha, isliye yeh plausible interpretations ko saath-saath dikhata hai.
- Protobuf wire types ka matlab kya hai?
- Har field tag ek wire type encode karta hai: 0 ek varint hai (ints, bools, enums), 1 fixed64 (sfixed64, double), 2 length-delimited (strings, bytes aur nested messages), aur 5 fixed32 (sfixed32, float). Decoder har field ko uske wire type ke saath label karta hai taaki aap use wapas source definition se map kar sakein.
- Mujhe protobuf hex ke roop mein paste karna chahiye ya base64?
- Dono kaam karte hain. Toggle ko Auto par rehne dein aur tool format detect kar leta hai; clean hex (hex digits ke pairs, optional spaces, colons ya 0x prefixes ke saath) hex ke roop mein padha jaata hai aur baaki sab base64 maana jaata hai, URL-safe base64 sahit. Agar aapka data ambiguous ho to toggle manually switch karein.
- Ek varint kai alag-alag numbers ke roop mein kyun dikhta hai?
- Ek protobuf varint ek int64, ek uint64, ya ek zig-zag-encoded sint64 represent kar sakta hai, aur wire format yeh record nahi karta ki kaun sa. Decoder un sab ko print karta hai, plus 0 aur 1 ke liye ek boolean reading, taaki aap apne schema se match karne wali interpretation pick kar sakein.
- Kya decoded payload kahin upload hota hai?
- Nahi. Protobuf decoding poori tarah aapke browser mein ek pure JavaScript wire-format parser ke zariye chalti hai, isliye aap jo bytes paste karte hain woh aapke device par process hote hain aur kabhi server par nahi bheje jaate.
Related tools
- Base64 Encode / Decode — UTF-8 safe Base64 encoding aur decoding.
- JSON Formatter — JSON ko beautify, minify aur validate karein, error ki location ke saath.
- JSON se Code — JSON se Go, Rust, Python, Java, Kotlin, C# aur TypeScript types generate karein.
- Hash Generator — Web Crypto API ke through SHA-256 / SHA-1 / SHA-384 / SHA-512.
- JWT Decoder — Ek JWT ka header aur payload decode karein aur exp/iat inspect karein (bina verification ke).
- Number Base Converter — Integers ko binary, octal, decimal aur hexadecimal ke beech convert karein.
Saare ArrayKit tools