URL Encoder

Encode or decode URL components. Handles special characters, query strings, and non-ASCII text.

Input
Output
Ready — enter input to start

Frequently Asked Questions

What is URL Encoder used for?+
URL Encoder converts text into a format safe for use in URLs by encoding special characters as percent-encoded sequences. This is essential for building URLs with query parameters containing spaces, international characters, or special symbols that would otherwise break URL parsing.
What characters get encoded in URLs?+
The encodeURIComponent function encodes all characters except A-Z, a-z, 0-9, -, _, ., and ~. This includes spaces (converted to %20), ampersands (& becomes %26), equals (= becomes %3D), question marks (? becomes %3F), and all non-ASCII characters like Chinese or emoji which become multi-byte percent sequences.
When should I use encode vs decode?+
Use Encode when you are building a URL from user input or external data and need to make it safe for transmission. Use Decode when you have an encoded URL and need to read the original values, such as when debugging query parameters or processing incoming URL data.
Is my data sent to a server?+
No. All encoding and decoding happens locally in your browser using JavaScript's standard encodeURIComponent and decodeURIComponent functions. Your URLs and data never leave your device.
What keyboard shortcuts are available?+
Press Ctrl+Enter (or Cmd+Enter on Mac) while in the input field to quickly encode the current text. This shortcut allows rapid encoding during development workflows.
Why does my decoded URL look broken?+
This usually happens when you decode a partial URL or a string that was not properly encoded. Make sure you are decoding complete percent-encoded sequences. If the input contains sequences like %20 that decode to spaces, ensure the entire URL segment is provided for accurate decoding.
Copied!