URL Encoder / Decoder (Percent-Encoding)
NEWURL encoder and decoder with three modes: encodeURIComponent, encodeURI and form encoding (+ for space). Finds malformed % escapes. Free, in your browser.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
encodeURIComponent: for one query value or path segment; encodes / ? & = # too.
Characters that changed
| Char | Code point | Encoded | Count |
|---|---|---|---|
| / | U+002F | %2F | 3 |
| = | U+003D | %3D | 2 |
| ␠ | space (U+0020) | %20 | 2 |
| & | U+0026 | %26 | 2 |
| : | U+003A | %3A | 1 |
| ? | U+003F | %3F | 1 |
| é | U+00E9 | %C3%A9 | 1 |
| è | U+00E8 | %C3%A8 | 1 |
Quick Examples
Typical inputs and the results this tool produces.
Overview
URLs may only contain a limited set of ASCII characters, so spaces, accents, emoji and characters with a special meaning such as & or = have to be written as percent-encoded UTF-8 bytes. This URL encoder and decoder converts text both ways and lets you pick the exact rule your code uses: encodeURIComponent for a single value, encodeURI for a complete URL, or HTML form encoding where a space becomes a plus sign.
Developers use it to build query strings by hand, debug double-encoded links, read tracking parameters or check what a server will receive. When decoding fails, the tool points to the line and column of the broken escape, such as a stray % or an invalid UTF-8 byte. A table lists every character that was changed and how often.
All encoding and decoding runs locally in your browser; nothing you paste is uploaded.
Why use this tool?
- Pick the mode that matches your code
- See exactly where a malformed % escape sits
- Encode or decode many lines at once
- Table of every character that changed
- Private: runs entirely in your browser
Features
Three encoding modes
Component, full URL and form (+ for space) follow the same rules as encodeURIComponent, encodeURI and URLSearchParams.
Precise error position
A malformed escape or invalid UTF-8 sequence is reported with its line and column.
Line-by-line option
Encode or decode a list of values while keeping one result per line.
Changed characters table
Each changed character is listed with its code point, encoded form and count.
Swap direction
Send the result back as input to check that encoding round-trips.
How to Use
Choose Encode or Decode
Pick the direction with the toggle above the input.
Pick a mode
Component for one value, Full URL for a whole link, Form (+) for form data.
Paste your text
The result and the changed-characters table update as you type.
Copy the result
Use Copy, or swap to run the output back the other way.