Skip to main content
OmniTools
Developer Tools

Online URL Encoder & Decoder

Convert special characters, spaces, and punctuation into safe percent-encoded ASCII characters (such as `%20` for spaces) for URLs, or decode encoded strings back into human-readable text.

URL Encoder/Decoder — Online Interactive Tool100% Free • Browser-Local Execution

Encode or decode strings and query parameters for safe web transmission.

Sample Inputcategory=shoes & boots&sort=low to high
Instant Outputcategory%3Dshoes%20%26%20boots%26sort%3Dlow%20to%20high

How to Use URL Encoder/Decoder

Step 1
Input Text or URL
Paste the URL or string into the input box.
Step 2
Select Operation
Click 'Encode URI' / 'Encode Component' or 'Decode URI'.
Step 3
Copy Transformed String
Copy the result or use 'Swap' to reverse the operation.

Key Capabilities

  • Dual Encoding Modes: Supports both standard encodeURI and strict encodeURIComponent (query strings).
  • Error Resilient: Gracefully handles malformed URI sequences with helpful diagnostics.
  • One-Click Swap: Quickly swap output back into input to inspect round-trip results.

Practical Example: URL Encoder/Decoder

Scenario: Encode a query parameter with symbols and spaces

Sample Input
category=shoes & boots&sort=low to high
Expected Output
category%3Dshoes%20%26%20boots%26sort%3Dlow%20to%20high

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI preserves protocol delimiters (: / ? #), while encodeURIComponent aggressively encodes all non-alphanumeric characters, making it safe for query parameters.

Related Online Tools

Case Converter

Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more.

Meta Tag Generator

Generate Google SEO, Open Graph, and Twitter card meta tags with live preview.

JSON Formatter & CSV Converter

JSON to CSV converter without upload private, plus JSON formatter, beautifier, minifier & validator.