HTTP Range Header Builder & Parser
Generate Range or Content-Range headers, or parse pasted range values with a known representation size. Validates byte positions, suffix ranges, unsatisfiable ranges, and wildcard totals without network access.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
The three range headers
A client asks for part of a representation with Range, a server answers 206 with Content-Range describing the slice it sent, and Accept-Ranges advertises that the resource supports byte serving at all. Build mode generates any of those values from numeric start, end and size fields, and parse mode reads pasted range values against a known representation size.
Byte positions are inclusive
The end byte counts as part of the range, so bytes=0-999 asks for one thousand bytes, not nine hundred and ninety-nine. The builder enforces that the end is not before the start, and the parser reports a range that begins at or past the representation size as unsatisfiable.
Suffix ranges and open ends
A value like bytes=-500 means the final five hundred bytes. When a representation size is supplied, the parser resolves that suffix to a concrete start and end and can warn when the suffix is larger than the whole resource, which simply yields the entire representation.
No resource is fetched
Every value is parsed and produced as header text inside this page. The tool never requests a URL or inspects a file, so it makes no network calls and keeps your pasted values on your device.
Questions
Are range ends inclusive?
Yes. bytes=0-99 requests the first 100 bytes. Content-Range uses the same inclusive start-end form.
What is a suffix range?
bytes=-500 requests the final 500 bytes. The parser can assess it when a representation size is provided.
Does this download or inspect a resource?
No. It only parses and generates header text locally.
Related tools
See category- HTTP Status Code Reference
- Content-Disposition Builder & Parser
- Content-Length & Body Byte Counter
- :nth-child An+B Evaluator
HTTP Status Code Reference
Look up HTTP status codes — what they mean and when APIs return them.
Content-Disposition Builder & Parser
Build or inspect Content-Disposition download and inline headers.
Content-Length & Body Byte Counter
Compute body byte length and verify content-length.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.