# URL Encoder/Decoder

URL encode and decode strings

> Canonical page: https://test.elysiatools.com/en/tools/url-encoder

- **Category:** Development

- **Keywords:** url encoder, url decoder, percent encoding, encodeURIComponent

## Overview

This tool converts text into percent-encoded strings for safe transmission in web addresses and decodes URI escape sequences back into standard text.

## Inputs

- **Text Input** (text): Enter text to encode/decode...
- **Operation** (select)

## When to use

- Escaping spaces, ampersands, or non-ASCII characters in query parameter values before constructing API requests.
- Interpreting percent-encoded tracking tags, redirects, or query strings found in server access logs.
- Sanitizing arbitrary user input before appending it as a parameter to an external URL.

## How it works

- Enter or paste the string into the Text Input field.
- Set the Operation option to 'Encode' to generate percent-encoded characters, or 'Decode' to translate escape sequences.
- Review the output text to verify that target symbols and spaces were correctly converted or restored.

## Use cases

- Web development: Encoding query parameters with special characters to ensure HTTP GET requests parse correctly on the server.
- Log analysis: Decoding obfuscated referrers, request paths, and search terms extracted from web server log entries.
- Authentication routing: Inspecting percent-encoded callback and return-path URLs passed through OAuth and single sign-on flows.

## Frequently asked questions

### What does the Encode operation change?

It converts characters outside the standard unreserved URI set—such as spaces, reserved punctuation, and non-ASCII characters—into percent-encoded hexadecimal sequences like %20 or %26.

### Should I encode the entire URL or just the query values?

Encode only the query parameter values or specific components. Encoding the full URL converts protocol separators like '://' and path slashes into escape sequences, making the link unclickable.

### What happens if I decode text that has no encoded sequences?

The text remains unchanged because standard characters require no conversion.

### How does the tool handle plus signs in query strings?

Standard URI decoding treats '%20' as a space; depending on context, '+' may be preserved as a literal plus sign rather than a space.

### Can this tool encode non-ASCII characters or emojis?

Yes, non-ASCII characters and emojis are converted into their corresponding UTF-8 percent-encoded byte pairs.

## Related tools

- [HTML Entity Encoder/Decoder](https://test.elysiatools.com/en/tools/html-entity-encoder): Encode and decode HTML entities
- [Base64 Encoder/Decoder](https://test.elysiatools.com/en/tools/base64-encoder): Encode and decode Base64 strings
- [Base64URL Encoder/Decoder](https://test.elysiatools.com/en/tools/base64url-encoder): Encode and decode Base64URL (URL-safe Base64 variant used by JWT/JWS/JWE), with conversions between standard and URL-safe Base64
- [Caesar Cipher](https://test.elysiatools.com/en/tools/caesar-cipher): Encode, decode, and brute-force the Caesar cipher with any shift (1–25), or print all 25 candidate decodings.
- [Hex to String Converter](https://test.elysiatools.com/en/tools/hex-to-string): Convert text to and from hexadecimal strings with flexible spacing, prefix (0x/\x/U+), and case options
- [Text to Binary Converter](https://test.elysiatools.com/en/tools/text-to-binary): Convert text to and from binary bit strings using ASCII (7-bit) or UTF-8 (8-bit) encoding
- [ASCII85 Converter](https://test.elysiatools.com/en/tools/ascii85-converter): Encode and decode text to/from ASCII85 format (Adobe version)
- [Atbash Cipher](https://test.elysiatools.com/en/tools/atbash-cipher): Encode and decode text using Atbash substitution cipher (reverses the alphabet)

## Samples

- [URL Slug Samples](https://test.elysiatools.com/en/samples/slug): Collection of valid and invalid URL slug examples for testing (lowercase letters, numbers, hyphens, optional underscores)
- [URL Query Analyzer Samples](https://test.elysiatools.com/en/samples/url-with-query-samples): Comprehensive collection of URLs with query parameters for testing URL parsing, encoding validation, and parameter extraction
- [Copyright-Free MP3 Audio Samples](https://test.elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Hex/Unicode Encoding Format Samples](https://test.elysiatools.com/en/samples/text-hex-unicode-formats): Examples of hex (\xXX) and unicode (\uXXXX) escape sequence encoding formats

## Related content

- [Base, Radix, and Hex Encoding Tools](https://test.elysiatools.com/en/hubs/base-radix-and-hex-encoding-tools): Convert text and bytes across Base variants, arbitrary radices, hex, and web escapes while checking reversible byte preservation.
