URL Decode Online — decodeURIComponent & decodeURI
Reverse percent-encoding on query strings and URLs. Opens in Decode mode — pick component, full URI, or form-urlencoded scope, then click Convert.
Choosing the right encoding mode
Encode component mirrors encodeURIComponent: spaces become %20, slashes become %2F, ampersands become %26. Perfect when you craft query pairs programmatically or reverse-engineer analytics URLs. Encode URI mirrors encodeURI: reserved structural characters remain untouched while Unicode code points still gain percent escapes. Form data mirrors application/x-www-form-urlencoded: like component mode but spaces become + instead of %20. Decode performs the inverse transformation using decodeURIComponent or decodeURI respectively. Click Convert to run — conversions are not automatic while you type.
Choosing an encoding scope
Quick comparisons
encodeURIComponent for parameters
Sample input
Sample output
encodeURI keeps URL scaffolding
Sample input
Sample output
Explore neighbouring tools
Binary payloads often ride alongside URLs — use the Base64 encoder. Escaping markup before injecting strings into templates belongs to the HTML entities utility, and shipping compressed bundles stays painless via CSS minification.
URL encoding FAQ
Solidify percent-encoding behaviour before touching APIs
Why does encodeURIComponent throw URI malformed?
decodeURIComponent surfaces errors when percent sequences are incomplete (% alone) or reference invalid UTF-8 bytes.
Should spaces become + or %20?
encodeURIComponent yields %20 — the default for REST query strings. Use the Form data scope when you need + for spaces, matching application/x-www-form-urlencoded bodies from HTML forms.
Does encodeURI protect XSS?
No — escaping URLs prevents delimiter breakage but never substitutes contextual HTML encoding.
Can I encode entire UTF-8 paths?
Yes — encodeURIComponent encodes outside ASCII automatically while preserving surrogate pairs.
Does FastMinify log URLs?
No server round-trip occurs; everything executes locally.
When should I use decodeURIComponent?
Use it to reverse strings produced by encodeURIComponent—typically query parameter names and values—before displaying or re-encoding them.
Does the tool handle non-ASCII text?
Yes. UTF-8 sequences are percent-encoded the same way modern browsers do before a request leaves the client.
Can I mix encodeURI and encodeURIComponent?
Usually you pick one strategy per layer: encodeURI for an almost-complete href, encodeURIComponent for each key and value you append to the query string.
Encoding
Encode or decode Base64, URL components and HTML entities — client-side only.
Explore other tool categories
Minify
Shrink code and assets for production — minify JavaScript, CSS, HTML, JSON and XML before gzip or CDN deploy.
Beautify
Make code readable with consistent indentation — beautify JavaScript, CSS, TypeScript, SCSS, LESS, Markdown, GraphQL, SQL, YAML and more in your browser.
Unminify
Expand minified or compressed code — unminify JavaScript, CSS, TypeScript, SCSS, LESS, SQL, YAML and other formats when debugging or reviewing.
Conversion
Transform data between JSON, YAML, XML and CSV locally — no server uploads.
JSON Tools
Validate, format, diff and explore JSON payloads — complementary to minifiers and converters.
SVG Tools
Preview, optimize with SVGO, export Data URI, resize, beautify, convert to JSX and validate SVG — all in your browser.
DevOps & Infra
Terraform HCL format/validate/minify, Dockerfile format & lint, Docker Compose and .env validation.
CI/CD
GitHub Actions and GitLab CI — format YAML and check workflow/job structure in your browser.
Logs & observability
Line-oriented JSON/NDJSON and Nginx/Apache access logs — format, filter, validate, and CSV/TSV.
Kubernetes
Multi-doc manifests, structural validate, Ingress/Deployment starters, and Helm values formatting.
Networking / IP
CIDR, subnets, and IPv4/IPv6 helpers — in your browser.
Security & tokens
JWKS, X.509 certificates, and secrets scan — browser-local.
API & schemas
OpenAPI tools to format, validate, and lint your specs.
Developer utilities
Timestamps, UUID, ULID, Nanoid, cron, passwords, regex, slugify, number bases, case, text diff, and chmod — all client-side.
Serialization
Serialize and deserialize PHP data structures beside JSON workflows.