CalculatorCast

Codificador/Decodificador de URL

Codifica y decodifica componentes de URL de forma segura.

Introducción

URL Encoder / Decoder - Encode and decode URL components safely. Enter Mode, Text to get an instant result.

Fórmula

Percent-encodes (or decodes) characters that aren't valid in a URL, replacing them with %XX hex escape sequences.

Paso a paso

  1. Enter the Mode.
  2. Enter the Text.
  3. Click Calculate to see your result instantly.

Ejemplo del mundo real

Example: With Mode = encode, the URL Encoder / Decoder gives Encoded: https%3A%2F%2Fcalchub.example%2Fa%20b.

Preguntas Frecuentes

Why do spaces become %20?
Spaces aren't valid in a raw URL, so they're percent-encoded to their hex ASCII value (20 in hex).
When would I need to decode a URL?
When reading query parameters or paths that contain percent-encoded characters, to see their original readable form.
What inputs does the URL Encoder / Decoder need?
You'll need to provide: Mode, Text. All fields use sensible defaults, so you can see a working example immediately and then adjust the values to match your own numbers.
How accurate is the URL Encoder / Decoder?
The URL Encoder / Decoder applies a fixed formula to the numbers you enter. Formula used: Percent-encodes (or decodes) characters that aren't valid in a URL, replacing them with %XX hex escape sequences. The result is only as reliable as the values you provide, so double-check your inputs.
Is the URL Encoder / Decoder free to use?
Yes, the URL Encoder / Decoder is completely free, requires no signup, and runs instantly in your browser.

Acerca de Codificador/Decodificador de URL

URLs can only contain a limited set of characters. Letters, digits, and a small number of symbols are allowed directly in a URL. All other characters, including spaces, non-ASCII characters, and many symbols, must be encoded using percent encoding before they can be safely included. The URL Encoder Decoder on CalculatorCast encodes or decodes any URL or URL component instantly.

Percent encoding, also called URL encoding, replaces unsafe characters with a percent sign followed by two hexadecimal digits representing the character's ASCII value. A space becomes %20. An at sign becomes %40. A forward slash that is part of data (not a path separator) becomes %2F. This encoding ensures that URLs can be transmitted correctly through any system without the data being misinterpreted as structural URL syntax.

URL encoding is essential in web development when building query strings that contain user input. If a user searches for a term like C++ programming, the plus signs and spaces must be encoded before being appended to a URL. Failing to encode these characters can break the URL structure or cause security vulnerabilities such as injection attacks.

The decoder direction is equally useful. When you receive a URL or a URL component that contains percent-encoded sequences, decoding it makes the value human-readable. Log analysis, debugging, and API testing all frequently involve reading and decoding URLs.

There are two standards for URL encoding: RFC 3986 encodes spaces as %20, while the HTML form encoding standard encodes spaces as plus signs (+). Our tool supports both standards and clearly labels which encoding is being applied, avoiding a common source of confusion.

Non-ASCII characters such as accented letters, Cyrillic, Chinese, Japanese, and Arabic characters require multi-byte UTF-8 encoding before percent encoding. Our tool handles this correctly, converting non-ASCII characters to their UTF-8 byte sequences and then percent-encoding each byte.

The URL Encoder Decoder is free on CalculatorCast, works on all devices, and requires no registration. Paste your URL or text and get the encoded or decoded result instantly.