URL Encode / Decode

Encode and decode URL components.

Input

Mode
Examples:

Output

What is URL encoding?

URL encoding (percent-encoding) turns characters that are unsafe or reserved in URLs into a percent sign followed by two hex digits. For example, a space becomes %20. Decoding reverses that so you can read or debug encoded query strings and path segments.

Why this tool is useful

Building links, APIs, or query strings often requires encoding special characters. Decoding helps when debugging redirects or parsing URLs. This tool encodes or decodes live; invalid encoded input shows an error so you can fix it. All processing is client-side.

Example usage

Type "hello world" and choose Encode to see hello%20world live. Switch to Decode and paste hello%20world to get back "hello world". Use it for query parameters, fragment identifiers, or any string that must be URL-safe.

How to use this tool

Paste your text in the input box. Choose Encode or Decode; output updates as you type. Invalid decode input shows an error message. For similar encoding needs, try Base64 Encode/Decode or Slug Generator.