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 👋