Encode text for a URL component or decode percent-encoded text for inspection.
The URL Encoder and Decoder converts text to and from percent-encoded form. Use Encode when preparing a value for a URL, or Decode when inspecting an encoded string.
Unreserved URL characters include letters, digits, -, _, ., and ~. Percent-encoded bytes use the form %HH, where HH is a hexadecimal value. Non-ASCII text can require multiple encoded bytes per character.
François Louiz becomes Fran%C3%A7ois%20Louiz.
café résumé 你好 becomes caf%C3%A9%20r%C3%A9sum%C3%A9%20%E4%BD%A0%E5%A5%BD.
In JavaScript, encodeURI and encodeURIComponent serve different purposes. The page shows Encode and Decode actions, not a selector between those functions. Check how the output handles separators before treating it as a complete URL.
When building query strings, encode individual values rather than blindly encoding the full URL. Structural ? and & characters need to remain separators. If ? and & are part of a value, encodeURIComponent is the relevant component-encoding function rather than encodeURI.
Encoding does not sanitize a destination or make a link trustworthy. Check malformed percent sequences and avoid encoding an already encoded value again unless that is what the receiving system expects.
How to Use URL Encoder and Decoder - Percent-Encode Text
Paste the text or percent-encoded value you want to inspect.
Select the action that matches your task. The page does not show a separate whole-URL versus component mode.
Review separators and encoded characters before copying the output into a URL or application.
Encode text for a URL component or decode percent-encoded text for inspection.
Tool Use:
1.0k+Added:
Jul 14, 2023Type:
Free ToolPrivacy:
Client SideByte array to string converter for decimal UTF-8 bytes. Paste comma-separated or whitespace-separated values and review the decoded text.
Enter encoded image data and inspect the image before downloading it.