Skip to main content

Network & Web

VarInt Encoder

Run VarInt Encode with a reviewed destination and request settings. Enter input, adjust the options, then copy or download the result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Your result appears here

Run VarInt Encode with a reviewed destination and request settings. Enter input, adjust the options, then copy or download the result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

VarInt Encoder encodes an integer as a variable-length VarInt.

It returns encoded bytes. The operation runs in your browser. Processing runs in the browser.

Instructions

  1. Provide text or data for this tool.
  2. Enter one integer.
  3. Run the encoder.
  4. Review the byte output before embedding it.

Example

Input: 8

Settings: VarInt Encoder: Use the built-in operation behavior.

Result: It returns encoded bytes. The operation runs in your browser.

Limits

  • VarInt Encoder: The input must be an accepted integer.
  • VarInt Encoder: It encodes one integer, not a complete Protobuf message.
  • VarInt Encoder: The receiving format must expect VarInt encoding.