Renchao Wu · Local byte-range inspection

HTTP Range Desk

See which bytes a range request describes.

Resolve inclusive offsets, suffixes, validators and overlapping parts without fetching a URL. Keep exact decimal offsets even beyond JavaScript's safe integer range.

This is a declared response-planning profile. HTTP servers may ignore Range or choose different permitted policies. A plan is not a verified response from a remote server.

Request and optional local bytes

Resource length, validators, date strength and the result of other preconditions are supplied by the request. They are not discovered from a server. A local file can verify actual byte slices and hashes; its timestamps and name are not treated as HTTP validators.

Loading original example inventory…

GET or HEAD; base_status 200, 304 or 412; length is a decimal string. Dates use canonical IMF-fixdate. Ctrl+Enter computes the current request.

No local bytes bound. Resource length is asserted metadata.

Choosing a file does not change your JSON. Use its length explicitly, then compute. A length mismatch is rejected. Files are read locally and never uploaded.

No range plan yet.

What the plan can and cannot tell you

Byte ranges address the encoded representation's octets, not text characters or decompressed bytes. A selected slice may split a UTF-8 character. Local previews therefore show hexadecimal bytes, not a fabricated decoded string.

A nonzero suffix is semantically satisfiable even for a zero-length representation. This profile then chooses the permitted policy of ignoring Range for an empty representation, producing a full 200 plan with zero selected bytes. It never invents a last byte at −1.

Malformed ranges are ignored under this profile. Unsupported units are ignored; values beyond the declared processing limits produce an outside-profile diagnostic with no predicted response status. Other servers can make different permitted choices.

Resource length is limited to 2⁶³−1 and supplied as an exact decimal string. Range numerals may contain up to 256 digits. This profile supports at most 64 nonempty ranges and 64 empty list members; these limits do not define HTTP itself.

The original cases and the independent verifier include huge offsets, zero suffixes, weak ETags, future dates, whole-header invalidation and the difference between repeated payload bytes and unique coverage. A real local standard-library server test also demonstrates that a server can ignore a valid Range and return a full 200 response.

Readme and examples · Exact input and export contract · Validation evidence · RFC sources and scope