URL Encoder / Decoder
Encode and decode URL components with percent-encoding. Handles spaces, special characters, and Unicode. Instant, client-side.
Sponsored
Related Tools
Markdown Editor
Write, preview, and export Markdown with live rendering
Regex Tester
Test regex patterns with live matches and groups
Git Commit Generator
Paste a git diff and generate clean conventional commit messages instantly
Email Validator
Validate email addresses, inspect domains, and generate mailto links
URL Encoder / Decoder β Percent-Encode & Decode URLs Online
Encode and decode URL strings using percent-encoding (also known as URL encoding). This tool handles spaces, special characters, Unicode, and query string parameters instantly in your browser β no server required.
URL encoding is required whenever you include special characters in a URL or form submission. Characters like spaces (%20), & (%26), and = (%3D) must be encoded to avoid breaking the URL structure.
What you can do with this tool
- Encode any text or URL to percent-encoded format (
%20,%3A, etc.) - Decode a percent-encoded URL back to readable text
- Handle full URLs or individual query parameter values
- Encode Unicode characters (e.g. Chinese, Arabic, emoji) to safe ASCII
- Supports both
encodeURIComponentandencodeURImodes
How to use the URL Encoder
- Paste your URL or text into the input field
- Choose Encode or Decode
- The result appears instantly
- Copy the encoded/decoded value to your clipboard
FAQ
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL and preserves characters like /, ?, #, and &. encodeURIComponent encodes a single parameter value and converts those characters too. Use encodeURIComponent for query parameter values.
Why does a space become %20 and not +?
Both %20 and + represent spaces in URLs, but in different contexts. %20 is the RFC 3986 standard. + is specific to application/x-www-form-urlencoded format used in HTML form submissions.