🔗

URL Encoder/Decoder

Encode and decode URL strings instantly in your browser. Converts special characters to percent-encoding and back. Handles spaces, Unicode, query parameters, redirect URLs, and all RFC 3986 reserved characters.

Developer ToolsDevelopment
Loading tool...

How to Use URL Encoder/Decoder

How to Use the URL Encoder/Decoder:

  1. Select Mode: Choose Encode to convert plain text to percent-encoded format, or Decode to convert a percent-encoded string back to readable text.

  2. Enter Input: Type or paste your text (for encoding) or your URL-encoded string (for decoding) into the input area. The tool handles spaces, Unicode characters, emoji, and all special characters correctly.

  3. Click Convert: Click the Convert button to perform the encoding or decoding. The result appears in the output area immediately.

  4. Copy Output: Click Copy Output to copy the result to your clipboard.

  5. Swap: Use the Swap button to move the current output into the input field and switch modes — useful for round-trip testing.

  6. Try a Sample: Click Sample to load an example input. The conversion runs automatically.

  7. Clear: Click Clear to reset all fields and start fresh.

Common Use Cases:

  • Query parameters: Safely encode search terms and values before appending to URLs (hello worldhello%20world)
  • Redirect URLs: Encode callback URLs passed as query parameters to external services
  • API requests: Prepare URL-safe data for GET request query strings
  • OAuth and authentication: Encode redirect URIs and state parameters
  • Debugging: Decode percent-encoded data from logs, cookies, or API responses
  • Form data: Handle application/x-www-form-urlencoded content

What Gets Encoded:

  • Spaces: %20
  • Reserved characters: !, #, $, &, ', (, ), *, +, ,, /, :, ;, =, ?, @, [, ]
  • Non-ASCII and Unicode: 你好%E4%BD%A0%E5%A5%BD
  • Safe characters NOT encoded: A-Z, a-z, 0-9, -, _, ., ~

Tips:

  • Use Encode mode for individual query parameter values, not entire URLs
  • URL encoding is NOT encryption — anyone can decode it instantly
  • Spaces encode as %20 (standard) not + (legacy form encoding)
  • All processing runs locally in your browser — nothing is sent to any server

Frequently Asked Questions

Most Viewed Tools

📺

Screen Size Converter

710 views

Calculate screen width and height from diagonal size and aspect ratio. Convert between inches and centimeters for displays, TVs, and monitors with instant dimension calculations.

Use Tool →
🖨️

DPI Calculator

290 views

Calculate DPI (dots per inch), image dimensions, and print sizes. Convert between pixels and physical dimensions for printing and displays.

Use Tool →
📄

Paper Size Converter

251 views

Convert between international paper sizes (A4, Letter, Legal) with dimensions in mm, cm, and inches. Compare ISO A/B series and North American paper standards.

Use Tool →

Fuel Consumption Converter

237 views

Convert between MPG (miles per gallon), L/100km (liters per 100 kilometers), and other fuel efficiency units. Compare car fuel economy across different measurement systems.

Use Tool →
✂️

CSV Splitter

226 views

Split large CSV files into smaller files by number of rows. Process large datasets in manageable chunks instantly.

Use Tool →
🛍️

Product Schema Generator

206 views

Generate JSON-LD Product schema markup for SEO. Add product details like name, price, brand, rating, and availability to create structured data for rich search results.

Use Tool →
📄

Large Text File Viewer

175 views

View and search large text files up to 200MB in your browser. Features virtual scrolling, line numbers, search functionality, and file statistics. Perfect for log files, CSV, JSON, and code files.

Use Tool →
🔑

API Key Generator

161 views

Generate secure, cryptographically random API keys for authentication and authorization. Create custom API keys with various formats including hex, base64, and prefixed keys.

Use Tool →

Related Development Tools

Share Your Feedback

Help us improve this tool by sharing your experience

We will only use this to follow up on your feedback