URL Encoder/Decoder
Free online URL encoder and decoder. Percent-encode special characters in URLs or decode them back. Supports Component and Full URL modes. Runs in your browser.
How to Use
- 1 Choose Encode to percent-encode your text, or Decode to convert encoded text back to readable form
- 2 Select the mode: Component for encoding a URL parameter value, Full URL for encoding a complete URL
- 3 Paste or type your input into the left area
- 4 Click the Encode or Decode button to process
- 5 Copy the result from the right area with the Copy button
Use Cases
Safely encode values before appending them to a URL query string, ensuring characters like & and = don't break the URL structure.
Decode percent-encoded URLs found in server logs or browser address bars to read the original human-readable text.
Encode dynamic values before inserting them into API endpoint URLs to prevent parsing errors on the server side.
Encode a full URL containing spaces or non-ASCII characters so it can be safely shared in emails, documents, or chat messages.
FAQ
Component mode uses encodeURIComponent, which encodes all special characters including ? & = : and /. Use this when encoding a single value that will be placed inside a URL. Full URL mode uses encodeURI, which preserves those structural characters so the URL remains valid. Use this when encoding a complete URL.
Yes. All encoding and decoding happens entirely in your browser. Your data is never sent to any server.
Percent-encoding (also called URL encoding) replaces characters that are not allowed or have special meaning in URLs with a percent sign followed by two hexadecimal digits representing the character's byte value. For example, a space becomes %20.
Use Component mode. A search query is a parameter value (the part after q=), so all special characters including & and + should be encoded. Full URL mode would leave those characters unencoded.
Yes, the decoder handles both Component-encoded and Full-URL-encoded strings using decodeURIComponent, which correctly interprets all standard percent-encoded sequences.
Once the page is loaded, the tool works entirely in your browser with no internet connection required.
Related Tools
Base64 Encoder/Decoder
Free online Base64 encoder and decoder. Encode any text to Base64 or decode Base64 back to text. Supports Unicode and URL-safe format. Runs in your browser.
Open →BMI Calculator
Calculate your Body Mass Index (BMI) easily with our free online calculator. Supports Metric and Imperial units with instant health category feedback.
Open →EST to CST Converter
Convert EST to CST instantly. Real-time clock sync, bidirectional conversion, and automatic daylight saving time support. Free and no registration required.
Open →