URL Encoder & Decoder
Turn text into a safe URL query value or decode a percent-encoded string back into plain text. Choose between encoding a single value (encodeURIComponent) and a full URL (encodeURI), and switch spaces between %20 and + for form data.
Encoded output
Share:
Which characters get encoded
| Character | Encoded | Component | Full URL |
|---|---|---|---|
| space | %20 | ✓ | ✓ |
| & | %26 | ✓ | — |
| = | %3D | ✓ | — |
| ? | %3F | ✓ | — |
| / | %2F | ✓ | — |
| # | %23 | ✓ | — |
| + | %2B | ✓ | — |
| % | %25 | ✓ | ✓ |
| " | %22 | ✓ | ✓ |
| é | %C3%A9 | ✓ | ✓ |
| A–Z a–z 0–9 - _ . ~ | unchanged | — | — |
The unreserved set A–Z a–z 0–9 - _ . ~ never needs encoding. Reserved characters (: / ? # [ ] @ ! $ & ' ( ) * + , ; =) are legal in a URL when they play their structural role, which is why a full-URL encode leaves them alone while a component encode escapes them. Decoding is the inverse and is safe to run on either form.
Frequently asked questions
Related tools
UUID GeneratorFree UUID generator: create one or hundreds of version 4 (random) or version 7 (time-ordered) UUIDs/GUIDs…Base64 Encode & Decode OnlineFree Base64 encoder and decoder: convert text to Base64 and Base64 back to text (UTF-8 safe), URL-safe…HTML Encoder & DecoderFree HTML encoder and decoder: escape < > & " ' as HTML entities so code shows as text, optionally encode…JSON Formatter, Validator & Minifier OnlineFree JSON formatter: pretty-print JSON with 2 or 4 spaces or tabs, validate it with the exact error line and…Ad Revenue CalculatorEstimate website ad income with AdSense, Ezoic, Mediavine and Raptive.BPM CounterFree BPM counter: tap the button (or your spacebar) to the beat and get the tempo in BPM i
More in Developer Tools · All tools & games