HTTP Range Request Planner
Enter the size of a representation and the Range header a client would send. The page parses the header the way a server does — byte offsets from zero, open-ended and suffix ranges, clamping, satisfiability — and shows the status, the Content-Range and Content-Type that come back, the bytes actually sent, and each part of a multipart response. Everything runs in your browser; nothing is uploaded, stored or sent anywhere.
Response
- Status
- not computedafter the request preconditions
- Content-Range
- not computedthe bytes this body covers
- Content-Type
- not computedthe representation's own type for one part
- Body bytes
- not computedof the full representation
- Saved
- not computedagainst a full transfer
- Ranges served
- not computedsatisfiable ranges out of those requested
Requested ranges
| Range spec | First byte | Last byte | Bytes | Response |
|---|
How this is worked out
- Plan a response to see the arithmetic.
What this does not do
- This models what a well-behaved origin server should answer, not what yours will. A server may ignore a Range header it cannot use, refuse a header with many overlapping or unordered ranges, and a cache or proxy may recombine or ignore the request.
- Range is evaluated only when the request would otherwise be a 200. A conditional GET that comes back 304 Not Modified never carries a partial body, and preconditions such as If-Match that fail short-circuit before this point.
- Ranges are counted on the bytes as sent, so with a content coding applied the offsets refer to the encoded sequence, not to the decoded resource.
- Sizes are limited to 1 to 1,099,511,627,776 bytes (1 TiB) and to at most 32 ranges in one header. A zero-length representation only allows a non-zero suffix range, and is not modelled here.