Dev · 108 tools · nothing uploads

COBS decode

COBS decode. Runs on your device, nothing is uploaded.

Input

live

COBS decode reads the space or comma separated hex bytes encode-cobs prints, then walks the length-prefixed blocks to strip the framing and restore any zero bytes COBS stuffed out. A zero byte where a length code belongs, or a block running past the input's end, is refused with its offset. It expects that hex-byte format, never raw text.

Questions

What input does it expect?

Space or comma separated hex bytes, the exact text format encode-cobs prints, not raw text.

What happens with a zero byte where a length code belongs?

The tool refuses with "unexpected zero byte in COBS stream" and the offset.

What happens with a truncated block?

The tool refuses, naming how many more bytes the block needed.

What is COBS for?

Consistent Overhead Byte Stuffing removes zero bytes from a stream so a protocol can use zero as a frame delimiter.

Can I use this from the command line?

Yes, the same code runs on the page, the CLI and MCP.

Related Dev tools