# bytepeel > Peel layers of encoding off binary data: hex, base64, PEM, JWT, xxd dumps, gzip/zlib/zstd, DER/ASN.1, CBOR, MessagePack and schemaless protobuf, byte-exactly. A CLI, an MCP server and a library, built for AI agents. These docs describe the latest release of bytepeel. Decode with `bytepeel FILE` (or stdin), `--format tree` for an outline, `--get PATH` for one item and `--format raw` for its bytes; edit with `bytepeel set PATH=VALUE`. As an MCP server (`npx -y bytepeel mcp`) it offers the tools `peel` and `set`. 64-bit integers are JSON strings; ambiguous protobuf fields list ranked `alts`. ## Pages - [bytepeel](https://bytepeel.pinta.land/index.md): Peel layers of encoding off binary data, byte-exactly. A CLI, an MCP server and a library, built for AI agents. - [Design](https://bytepeel.pinta.land/design/index.md): Why bytepeel exists and the principles behind it. ## Guide - [Guide](https://bytepeel.pinta.land/guide/index.md): Install bytepeel, decode and edit data from the command line, connect it to an AI agent, and use it from JavaScript or Rust. - [Install](https://bytepeel.pinta.land/guide/install/index.md): Run bytepeel with npx, install it from npm or crates.io, or download a prebuilt binary. - [Decoding](https://bytepeel.pinta.land/guide/decoding/index.md): Decode data from a file or stdin, read the tree outline, select one item with --get, and extract its bytes with --format raw. - [Editing](https://bytepeel.pinta.land/guide/editing/index.md): Change, add and remove values deep inside encoded data with bytepeel set, and get it back in its original encoding. - [MCP server](https://bytepeel.pinta.land/guide/mcp/index.md): Run bytepeel as a Model Context Protocol server so an AI agent can call it as a tool, and the peel and set tools it offers. - [Agents](https://bytepeel.pinta.land/guide/agents/index.md): The Claude Code plugin and the agent skill that make an AI agent use bytepeel instead of decoding bytes by eye, and how well it works. - [JavaScript](https://bytepeel.pinta.land/guide/javascript/index.md): Use bytepeel from Node, Deno, Bun or the browser through its WebAssembly build, from npm or JSR. - [Rust](https://bytepeel.pinta.land/guide/rust/index.md): Use the bytepeel-core crate to decode, select and edit data from Rust, with no dependencies by default. ## Reference - [Reference](https://bytepeel.pinta.land/reference/index.md): The public contract: the JSON schema, paths, editing rules, detection heuristics and error codes. - [Formats and pipeline](https://bytepeel.pinta.land/reference/formats/index.md): Which formats bytepeel decodes, the order it tries them in, and the depth and size limits. - [JSON schema](https://bytepeel.pinta.land/reference/json-schema/index.md): The JSON output: nodes, protobuf fields and alternatives, DER elements, CBOR/MessagePack values, JWTs, PEM bundles, numbers and byte ranges. - [Paths](https://bytepeel.pinta.land/reference/paths/index.md): The paths that --get, set and the MCP tools take: protobuf field numbers, DER indices, map keys, JWT parts, JSON text, and paths that cross formats. - [Editing rules](https://bytepeel.pinta.land/reference/editing/index.md): How bytepeel set splices, re-encodes and verifies: value syntax per format, adding and removing items, and what cannot be edited. - [Detection heuristics](https://bytepeel.pinta.land/reference/heuristics/index.md): The scores and thresholds bytepeel uses to recognize each format and rank protobuf field interpretations. - [Error and warning codes](https://bytepeel.pinta.land/reference/errors/index.md): Every error and warning code bytepeel reports, with what it means. - [Known limitations](https://bytepeel.pinta.land/reference/limitations/index.md): What bytepeel does not decode, and the cases where auto-detection needs help.