Convert Protobuf to TONL with our free online converter.
Use the converter below or open in full converter with more options.
The output below was generated by the same conversion code the converter uses, run on this sample when the page was built.
user {
id: 42
email: "dev@example.com"
active: true
roles: "admin"
roles: "billing"
profile {
display_name: "Dev Ops"
locale: "en-SE"
}
}#version 1.0
root:
user{active,email,id,profile,roles}:
active: true
email: dev@example.com
id: 42
profile{display_name,locale}:
display_name: Dev Ops
locale: en-SE
roles[2]: admin,billingTONL output is 40% larger than the Protobuf input. The same data is 140 characters as minified JSON and 218 as pretty-printed JSON. Sizes are character counts, not tokens: token counts depend on the model's tokenizer (see the tokenizer comparison).
Protocol Buffers is a binary serialization format from Google. Extremely compact and fast, but requires a schema definition.
TONL (Token-Optimized Notation Language) is a compact text format that maps one-to-one to JSON and ships with a query API, schema validation, and streaming. Savings are roughly 32-45% versus JSON in the TONL project's own measurements.
Use TONL when you want a compact text format plus tooling around it: querying, schema validation, or streaming. For plain prompt compression, TOON is usually the simpler choice.
Paste your Protobuf into the editor on json2toon.co. The tool detects the input and produces TONL instantly, then you copy the result. Conversion runs entirely in your browser, so nothing is uploaded to a server.
Yes. Converting Protobuf to TONL on json2toon.co is free with no account, signup, or usage limit. A free public API is also available for automated, programmatic conversion.
Convert Protobuf to TONL with our free online converter.
TONL output starts with #version 1.0 and a root key, lists field names in braces, and sorts keys alphabetically. On small payloads the header and per-object field lists make it larger than TOON; TONL earns its place through its query, schema, and streaming tooling.
Yes. The Protobuf to TONL conversion happens client-side in your browser. Your source data stays on your device and is never sent to or stored on a server, which makes it safe for private or sensitive payloads.