Skip to main content

URL Encoder & Decoder

Encode and decode URLs and URL components. Supports three encoding modes: URL component, full URL, and form data. Handles Unicode and percent-encoded sequences correctly.

Client-Side Privacy Free Forever Mobile & PC
Operation mode

Encoding type:

What is URL encoding?

URL encoding (percent encoding) converts characters that are not allowed or have special meaning in URLs into a percent sign followed by two hexadecimal digits. For example, a space becomes %20 and an ampersand becomes %26. This ensures that URLs can be transmitted correctly over the internet without ambiguity.

Encoding types explained

  • URL component (encodeURIComponent) - Encodes all characters except letters, digits, and the characters - _ . ! ~ * ' ( ). This is the right choice for encoding individual query parameter values, such as a search term or a URL being passed as a parameter.
  • Full URL (encodeURI) - Encodes all characters except those that are valid parts of a URL (it preserves : / ? & = # @ etc.). Use this when you want to encode a complete URL without breaking its structure.
  • Form data - Like encodeURIComponent but replaces spaces with + instead of %20. This is the application/x-www-form-urlencoded format used in HTML form submissions.

Common use cases

  • Encoding a search query to include in a URL: use URL component encoding.
  • Passing a full URL as a query parameter: use URL component encoding on the inner URL.
  • Decoding a percent-encoded API response: use URL component decoding.
  • Preparing form data for HTTP POST: use form encoding.

Decoding errors

A decoding error occurs when the input contains a malformed percent-encoded sequence, such as %GG (invalid hex digits) or a lone % sign. This tool will report the error and explain the cause. Fix the input by correcting or removing the invalid sequence.

Privacy & Security

All encoding and decoding uses the browser's built-in encodeURIComponent, decodeURIComponent, encodeURI, and decodeURI functions. Nothing is sent to any server.

Our Tool Features

Why developers and engineers prefer this tool for everyday development workflows.

Cross-Device Compatibility

Works seamlessly on all modern desktop, tablet, and mobile browsers including Chrome, Firefox, Safari, Edge on Windows, macOS, Linux, Android, and iOS.

Fast In-Browser Execution

Processes your data in real-time directly inside your browser. No queue wait times, no network round-trips, and zero latency.

100% Client-Side Privacy

Your code, tokens, passwords, and files are never transmitted to any external server or saved in logs. Everything runs locally in memory.

Instant File & Clipboard Input

Supports one-click sample loading, file drag-and-drop, and pasting directly from your clipboard (Ctrl + V) for effortless workflows.

Strict Standards Compliant

Built strictly according to official specifications (RFCs, W3C, ISO, and standard cryptographic algorithms) ensuring accurate output every time.

Unlimited Free Usage

No registration, no accounts, no subscriptions, and no hidden daily quotas. Use this tool as many times as you need without restrictions.

Recent Updates & Improvements

Continuously maintained and improved based on developer feedback.

Client-Side Speed & Performance UpgradeRecent Update

Optimized processing algorithms with Web Workers and native browser APIs (SubtleCrypto, Canvas 2D) for instantaneous zero-latency execution.

Clipboard Paste & Drag-and-Drop AddedFeature Added

Added instant clipboard pasting (Ctrl + V) and drag-and-drop file support to accelerate developer productivity without manual downloads.

Enhanced Mobile & Touch Device ExperienceUI/UX Update

Redesigned responsive touch controls, flexible copy buttons, and camera preview framing for mobile and tablet browsers.

Frequently Asked Questions

Related Tools