JSON to Avro Converter
Convert JSON into Avro, shown as hex or another text form. Nested JSON documents are supported - try the examples.
Input
Output
Settings
How the input is converted. Each is explained below.
Tags
History
JavaScript Object Notation (JSON), pronounced as Jason, is the most common data interchange format on the web. Douglas Crockford first released the JSON specification in the early 2000s. It is a simple format that is easier to comprehend than XML. It is also smaller in size because it does not have closing tags. A wide variety of programming languages can parse JSON files. They also support the serialization of data structures to JSON. You can copy JSON text to JavaScript and start using them without any modifications.
Avro is a compact and efficient binary file format used for serializing data during transmission. The schema of Avro files are specified in JSON.
Settings explained
- Output type
- How the binary output is written as text: hex (the default), Base64, escaped hex, bracketed binary, percent encoding, raw, or a UInt8 array.
- Delimit by space
- Separates each byte with a space, as hex editors show binary data. For Hex and UInt8 array only. Copy output leaves the spaces out.On
DD 00 00 00 01 DF 00 00 00 04 A4 6E 61 6D 65 AA 52 6F 62 69 6E 20 48 6F 6F 64 AA 64 65 70 61 72 74 6D 65 6E 74 A0 A7 6D
OffDD00000001DF00000004A46E616D65AA526F62696E20486F6F64AA646570
- Uppercase
- Writes the hex letters in upper case. For Hex only.Off
dd 00 00 00 01 df 00 00 00 04 a4 6e 61 6d 65 aa 52 6f 62 69 6e 20 48 6f 6f 64 aa 64 65 70 61 72 74 6d 65 6e 74 a0 a7 6d
- Prefix 0x
- Puts 0x in front of each byte, as C and the languages after it write hex numbers. For Hex with Delimit by space on.On
0xDD 0x00 0x00 0x00 0x01 0xDF 0x00 0x00 0x00 0x04 0xA4 0x6E 0x61 0x6D 0x65 0xAA 0x52 0x6F 0x62 0x69
- Split long lines
- Breaks the output into lines of 60 characters, as hex viewers do. For Hex, Base64 and UInt8 array. Copy output leaves the line breaks out.