HTTP Headers Reference
About this tool
About HTTP Headers Reference
A compact reference for the HTTP headers you actually meet when building websites and APIs. Each header is listed with whether it belongs in requests, responses or both, a plain-English description, a realistic example value you can copy, and notes about common mistakes. The list is grouped the way problems arrive: caching (Cache-Control, ETag, Vary), CORS (Access-Control-Allow-Origin and friends), security (Content-Security-Policy, Strict-Transport-Security, Cross-Origin-Opener-Policy, Permissions-Policy, X-Content-Type-Options), cookies, authentication, content negotiation, conditional and range requests, client hints, fetch metadata, redirects and proxies. Search by name or by what you are trying to do, such as clickjacking, preflight or compression, and filter by group or by request and response. Deprecated headers such as X-XSS-Protection and Expect-CT are kept and marked, with what to use instead. It is a static page that runs offline once loaded.
Built and maintained by Abhi JainUpdated
Recent changes
- Add CSV/JSON converters, world clock, HTTP reference, and tools UI updates
How to Use the HTTP Headers Reference
- 1
Search
Type a header name or a task, such as cache, cors or clickjacking, into the search box.
- 2
Filter
Pick a group (Caching, CORS, Security…) and Request or Response to narrow the list.
- 3
Copy the example
Read the description and notes, then copy the example header line and adapt it.
HTTP Headers Reference: questions and answers
What security headers should every website send?
At least Strict-Transport-Security, Content-Security-Policy (including frame-ancestors), X-Content-Type-Options: nosniff and Referrer-Policy. Add Permissions-Policy to switch off features you don't use, and Cross-Origin-Opener-Policy if you need cross-origin isolation.
Which headers control CORS?
The server answers with Access-Control-Allow-Origin, plus Access-Control-Allow-Methods, -Headers and -Credentials for preflight requests. The browser sends Origin, and Access-Control-Request-Method and -Headers in the OPTIONS preflight.
What is the difference between Cache-Control no-cache and no-store?
no-cache lets a cache store the response but requires it to revalidate with the server before each reuse. no-store forbids storing it at all. Use no-store for sensitive data.
Are HTTP header names case-sensitive?
No. Header names are case-insensitive, and HTTP/2 and HTTP/3 send them in lowercase. Header values may be case-sensitive depending on the header.
Is X-Frame-Options still needed?
Content-Security-Policy: frame-ancestors replaces it in modern browsers. Sending X-Frame-Options: DENY as well is harmless and protects very old browsers.
Related Tools
- HTTP Status CodesSearchable list of HTTP status codes with meanings, when to use them and retry advice.
- MIME Type LookupFind the MIME type for a file extension, or the extensions for a MIME type.
- cURL ConverterTurn a cURL command into fetch, Axios, Python, Go, PHP, Node or HTTPie code.
- User Agent ParserParse a user agent string into browser, version, engine, OS and device, one or in bulk.