URL Encoder & Decoder
Encode and decode URL-encoded strings instantly. Components and full URLs. Free, no signup.
Encode and decode URL-encoded strings with toggles for component-mode (encodeURIComponent) versus full URI (encodeURI). Highlights every encoded character so you can see exactly what changed.
When to use it
- 1Building or debugging URLs that contain special characters or non-ASCII text.
- 2Pasting a URL into code that needs the encoded form, or vice versa.
- 3Inspecting deep links from emails or analytics platforms.
How it works
- 1
Paste your input
Drop a URL or component string into either textarea. The other side updates as you type.
- 2
Pick the encoding mode
Component mode encodes everything that is not URL-safe, including slashes. URI mode leaves the URL structure intact.
- 3
Copy the result
Each box has a copy button. Use the swap button to flip directions without retyping.
Frequently asked
What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves URL structure characters (/, ?, #, etc.). encodeURIComponent encodes everything that is not a basic alphanumeric or unreserved character.
Does it handle non-ASCII characters?
Yes. Unicode characters are encoded as their UTF-8 byte representation in percent-encoded form.
Want a tool just like this, but yours?
Every tool on this page was generated by GenMB from a single prompt. Describe yours and ship it to your own subdomain in minutes.
Build with GenMBRelated tools
Free QR Code Generator
Generate QR codes for URLs, text, contact cards, and Wi-Fi. Sign in to save your codes and revisit them anytime.
JSON to YAML Converter
Convert JSON to YAML and YAML to JSON instantly. Validates input, formatted output, copy with one click.
JSON to CSV Converter
Convert JSON arrays to CSV and CSV to JSON. Auto-detects headers, supports nested fields, copy or download.
Markdown to HTML Converter
Convert Markdown to clean HTML in real time, with GitHub-flavored Markdown and saved documents when you sign in.