URL Encoder/Decoder

Encode or decode URLs and query parameters

URL processed successfully!
URL Encoder/Decoder
Operation
Options
URL Components
Component Value
Protocol (scheme)
Host
Port
Path
Query
Fragment (hash)
Query Parameters
Parameter Value
How to use this tool
How to use the URL Encoder/Decoder

The URL Encoder/Decoder tool allows you to safely encode and decode URLs and query parameters. This is useful for working with URLs that contain special characters or when debugging query strings.

Step 1: Enter your URL or query string

Copy and paste the URL or query string you want to process into the input field.

Step 2: Select the operation

Choose one of the following operations:

  • Encode URL - Convert special characters to their percent-encoded equivalents
  • Decode URL - Convert percent-encoded characters back to their original form
  • Parse Query String - Extract and display query parameters as a JSON object
  • Build Query String - Convert a JSON object into a query string
Step 3: Configure options

Depending on the selected operation, you can adjust the following options:

  • Encode spaces as + - Use + instead of %20 for spaces (common in query strings)
  • Encode reserved characters - Also encode characters like /, :, &, etc.
  • Encode brackets - Encode brackets ([ ] { }) which are sometimes used in query parameters
  • Pretty print - Format JSON output with proper indentation (for Parse Query String)
Step 4: Process your URL

Click the "Process URL" button (or the operation-specific button) to transform your input.

Step 5: View the results

The processed result will appear in the output field. For URLs, you'll also see a breakdown of components (protocol, host, path, etc.). For query strings, you'll see a table of parameters and values.

Step 6: Reset or copy

Use the "Copy" button to copy the result to your clipboard, or click "Reset" to clear all inputs and options and start over.

Tip: When working with query strings containing special characters like &, =, %, +, or spaces, encoding is necessary to ensure the URL works correctly in browsers and web applications.