URL Encoder & Decoder

Make text safe for a URL.

View result ↓
01  InputUpdates as you type
02  ResultOn your device
Enter a value to see the result.

On your device

How to use

Choose a direction and paste text. Uses encodeURIComponent and decodeURIComponent for URL components, not whole URLs.

Good to know

Spaces become %20. Decoding leaves + unchanged. Invalid percent escapes or UTF-8 are rejected.

Worked examples

Input

Text → encoded: Hello 👋

Expected result

Hello%20%F0%9F%91%8B

Input

Encoded → text: Hello%20%F0%9F%91%8B

Expected result

Hello 👋

URL components, spaces, and plus signs

Encoding uses encodeURIComponent: enter one query value or path component. A space becomes %20, a plus sign becomes %2B, and a slash becomes %2F. Encoding a complete URL also encodes its separators, so use the tool on individual components when you need to keep the URL structure.

Decoding uses decodeURIComponent. Hello%20world becomes Hello world, but a raw + stays +; this is not form decoding where + means a space. Malformed percent escapes and invalid UTF-8 sequences are rejected. Inputs and results are processed in the browser.