URL Encoder / Decoder
The URL Encoder and Decoder helps you safely convert text and URL components into URL-encoded format or decode encoded values into readable text. Prepare query parameters, inspect special characters, and troubleshoot URL encoding issues during API testing and web development. This free online URL encoding tool works without requiring extra software. Enter your text or encoded string to get started.
Encode text containing spaces and query characters. Load the example to see the tool in action.
What is URL Encoder / Decoder?
A URL Encoder and Decoder converts special characters into percent-encoded representations and decodes encoded text back into readable form. Use this free online URL encoding tool to prepare query parameters, troubleshoot API requests, inspect URLs, and handle characters that need encoding when included in URL components.
Why use this tool?
- Prevent reserved characters from being interpreted as URL syntax.
- Prepare query-parameter values for HTTP requests.
- Inspect the encoded form of characters such as spaces, ampersands and slashes.
How to use URL Encoder / Decoder
- Step 1. Enter the URL component or text value.
- Step 2. Choose encoding or decoding.
- Step 3. Copy the resulting value into the appropriate URL or request field.
Common use cases
Encode a value for a URL query parameter
Encode individual query parameter values rather than encoding an entire URL as one string.
const searchTerm = "JSON formatter & validator";
const url = `/search?q=${encodeURIComponent(searchTerm)}`;
console.log(url);Tools to use next
Continue the task with related utilities for the next step in your workflow.
Important notes
- Encoding a complete URL and encoding a single query parameter are different operations.
- Do not double-encode a value that has already been percent encoded.
More Encoding & Conversion Tools
URL Encoder / Decoder FAQ
What does %20 mean?
%20 is the percent-encoded representation of a space in a URL component.
Should I encode an entire URL?
Usually you should encode individual dynamic components such as query-parameter values rather than blindly encoding the complete URL.