Redirect Chain Viewer
Trace the full redirect chain for any URL and see every hop (301/302/307/308) until the final destination. Validate canonical redirects (HTTP→HTTPS, www/non-www, locale paths), reveal loops and long chains, and optionally inspect raw headers including Location. Export results to JSON for audits and monitoring.
Features
- Trace redirect chains (301/302/307/308) and reveal the final destination URL.
- Show each hop's Location target to understand routing and canonicalization.
- Validate common canonical redirects (HTTP→HTTPS, www↔non-www).
- Optional raw headers view for deeper debugging (including Location and caching headers if present).
- Copy results for tickets, audits, and migration runbooks.
- Export JSON reports for automation and repeatable SEO checks.
- Safe-by-default: blocks private-network targets and uses a fixed User-Agent.
🧭 How to use for redirect-chain-viewer
Paste the URL you want to test
Enter the starting URL (including protocol if possible). Testing both http:// and https:// can reveal canonicalization issues.
Keep "Follow Redirects" enabled
This tool is designed to trace chains. Following redirects shows every hop and the final destination.
Enable "Show Raw Headers" when debugging
If you need deeper clues (Location formatting, caching layers, server behavior), enable raw headers to see more details.
Interpret the chain
Look for extra hops, protocol flips, hostname flips, or locale rewrites. The best chain is usually 0–1 hops to the canonical URL.
Export JSON for audits
Download the JSON report to store results, compare changes over time, or attach evidence to SEO/ops tickets.
Technical specs
Redirect tracing behavior
The tool requests the URL and follows redirect responses, collecting each hop until the final destination or the configured redirect cap is reached.
| Setting | Behavior | Default |
|---|---|---|
| Follow Redirects | Follows redirects to collect the full chain | Enabled |
| Max Redirects | Stops tracing after this many hops | 15 |
| Show Raw Headers | Includes raw response headers in the output for debugging | Disabled |
| Timeout | Request timeout limit | 15000 ms |
| User-Agent | Identifies the request user agent | Encode64Bot/1.0 (+https://encode64.com) |
| Private networks | Blocks access to private network ranges for safety | Disabled (private networks not allowed) |
Common "good" redirect patterns
Most sites should converge to one canonical URL quickly to minimize latency and crawler overhead.
| Goal | Example chain | Recommended |
|---|---|---|
| HTTP→HTTPS | http://example.com → https://example.com | ✅ Yes (permanent) |
| Canonical host | https://example.com → https://www.example.com (or reverse) | ✅ Yes (permanent) |
| Trailing slash normalization | /page → /page/ | ✅ Sometimes (be consistent) |
| Locale normalization | / → /en/ | ✅ If your strategy requires it |
| Multiple hops | http → https → www → /en/ → /page/ | ⚠️ Reduce if possible |
Loop detection and failure modes
Redirect loops typically come from conflicting rules across layers (CDN + Nginx + app) or mismatched canonicalization settings.
| Symptom | Typical cause | Fix approach |
|---|---|---|
| Hits redirect cap | Loop between two URLs (www↔non-www, http↔https, slash rules) | Audit rules in CDN, reverse proxy, app router; ensure single source of truth |
| Unexpected 302/307 | Temporary redirect set by auth, A/B test, middleware | Switch to 301/308 for permanent moves; isolate middleware behavior |
| Chain differs by region | Edge routing varies by POP / geo / device | Test multiple entry URLs; standardize redirects at the edge |
Command line
Use curl to inspect redirect chains quickly from the terminal, similar to what this tool visualizes.
macOS / Linux
Show redirect chain headers
curl -IL http://example.com-I prints headers only, -L follows redirects. You'll see each HTTP status and Location hop.
Print final effective URL after redirects
curl -Ls -o /dev/null -w "%{url_effective}
" http://example.comOutputs the final URL after following redirects.
Windows (PowerShell)
Inspect response and redirections
Invoke-WebRequest -Uri http://example.com -MaximumRedirection 10 -Method Get | Select-Object StatusCode, BaseResponsePowerShell can follow redirects up to a limit and shows the resulting status.
Use cases
SEO canonicalization checks
Confirm that every entry URL resolves to one canonical URL quickly and consistently.
- Ensure HTTP redirects to HTTPS
- Ensure www/non-www canonical choice is enforced
- Reduce multi-hop chains to improve crawl efficiency
Site migrations and domain changes
Validate that old URLs redirect correctly to their new equivalents and that the chain ends with a 200 response.
- Verify old slugs redirect to new slugs
- Confirm permanent redirects (301/308) for moved content
- Catch redirect-to-404 situations
CDN / reverse-proxy debugging
Understand how edge rules, proxies, and the application interact when a URL is requested.
- Identify which layer creates each hop
- Detect loops caused by duplicate canonicalization rules
QA for localized routing
Validate locale or region routing (e.g., / → /en/) without accidentally creating long redirect chains or loops.
- Confirm locale rewrite behavior
- Avoid /fr → /fr/ → /fr (loop) patterns
❓ Frequently Asked Questions
❓Why are redirect chains bad for SEO?
❓What should I use: 301 or 308?
HTTP method more strictly, while 301 is widely used and understood. For SEO, either can be fine if used consistently for permanent moves.❓Why do I see 302/307 when I expected 301?
❓How do I find the cause of a redirect loop?
HTTPS, app forces HTTP). Audit one layer at a time and keep canonicalization logic in a single place when possible.❓Should I redirect trailing slashes?
❓Is it safe to paste URLs here?
Pro Tips
Aim for 0–1 redirects to reach the canonical URL. Update internal links and sitemaps to point directly to the final destination.
Keep canonicalization rules in one layer (CDN OR proxy OR app) to avoid conflicting redirects and loops.
For permanent moves, use 301/308 and avoid 302/307 unless the redirect is truly temporary.
When testing canonical behavior, check both protocol and host variants (http/https + www/non-www) and compare results.
Export JSON results during migrations to track regressions and prove redirect correctness to stakeholders.
Additional Resources
Other Tools
- CSS Beautifier
- HTML Beautifier
- Javascript Beautifier
- PHP Beautifier
- Color Picker
- Sprite Extractor
- Base32 Binary Encoder
- Base32 Decoder
- Base32 Encoder
- Base58 Binary Encoder
- Base58 Decoder
- Base58 Encoder
- Base62 Binary Encoder
- Base62 Decoder
- Base62 Encoder
- Base64 Binary Encoder
- Base64 Decoder
- Base64 Encoder
- Hex Binary Encoder
- Hex Decoder
- Hex Encoder
- Csharp Formatter
- Csv Formatter
- Dockerfile Formatter
- Elm Formatter
- ENV Formatter
- Go Formatter
- Graphql Formatter
- Hcl Formatter
- INI Formatter
- JSON Formatter
- Latex Formatter
- Markdown Formatter
- Objectivec Formatter
- Php Formatter
- Proto Formatter
- Python Formatter
- Ruby Formatter
- Rust Formatter
- Scala Formatter
- Shell Script Formatter
- SQL Formatter
- SVG Formatter
- Swift Formatter
- TOML Formatter
- Typescript Formatter
- XML Formatter
- YAML Formatter
- Yarn Formatter
- CSS Minifier
- Html Minifier
- Javascript Minifier
- JSON Minifier
- XML Minifier
- Cache Headers Analyzer
- Cors Checker
- Csp Analyzer
- Dns Records Lookup
- Http Headers Viewer
- Http Status Checker
- Open Graph Meta Checker
- Robots Txt Tester
- Security Headers Checker
- Security Txt Checker
- Sitemap Url Inspector
- Tls Certificate Checker
- PDF To Text
- Regex Tester
- Serp Rank Checker
- Whois Lookup