Parameter value (recommended)
Use encodeURIComponent for query values, path fragments, and file names.
Encode or decode URL text (percent-encoding) instantly in your browser. Switch between encodeURIComponent and encodeURI behavior, and detect possible double encoding.
Auto mode is the default. Paste text, get an immediate result, then copy, swap, or clear it in one flow.
Use encodeURIComponent for query values, path fragments, and file names.
Use encodeURI when you need to preserve the structure of a complete URL.
In form-style queries, + may represent a space. You can change this behavior under Advanced options.
Input
https://example.com/search?q=Tokyo lunch&ref=email#section
Output preview
Choose the Complete URL target to preserve URL structure while encoding
Input
utm_source=email&utm_campaign=spring sale 2026
Output preview
Compare how + and %20 represent spaces
Input
Hello/World?name=John Doe¬e=10%OFF
Output preview
Safe decoding keeps invalid % sequences and warns instead of stopping
%20 is the RFC-style representation of a space. The + sign is mainly used by application/x-www-form-urlencoded forms, where it may be decoded as a space.
Use encodeURIComponent for individual values and encodeURI for complete URLs. Decide based on whether URL delimiters should remain unchanged.
Many %25 sequences usually mean the same value was encoded more than once. This tool detects that pattern and lets you decode one more time with a click.