How byte ranges work
A Range request asks for part of a resource. Byte offsets start at zero and the ending offset is included.
Three ways to select bytes
For a 1,000-byte resource, the last byte is at position 999.
bytes=100-199- Selects offsets 100 through 199, for a total of 100 bytes. An end beyond 999 is reduced to 999.
bytes=800-- Selects offsets 800 through 999, for a total of 200 bytes.
bytes=-128- Selects the last 128 bytes, from offset 872 to 999. A suffix larger than the resource selects the whole resource.
Reading the result
If a server honors a valid range on a nonempty resource, it can return 206 Partial Content. For the first example, Content-Range: bytes 100-199/1000 gives the selected offsets and full resource size.
A starting offset beyond the final byte, or a zero-byte suffix, selects no bytes. A server can signal an unsatisfiable range with 416 Range Not Satisfiable and Content-Range: bytes */1000.
The calculator models one byte range over a resource of known size. For an empty resource it reports that there are no byte offsets. A real server may choose to ignore Range and return the full response.
Your inputs
Calculations run in the current browser tab. Entries are held on the page and cleared by Reset.