← Hashito System Home 日本語 Other tools
Input
How to use: Choose "Encode" or "Decode" and type a string in the input box on the left to see the result update on the right in real time. For the encode method you can switch between encodeURIComponent (for a single part of a URL such as a query value; also encodes symbols) and encodeURI (for a whole URL; keeps reserved characters).
Result
📖 We also offer free learning posters that illustrate how networks and the web work. Take a look at the learning poster list as well.

Frequently Asked Questions (FAQ)

What is URL encoding?

URL encoding (percent-encoding) is a scheme that converts characters that cannot be used directly in a URL (such as non-ASCII letters, spaces, and symbols) into a sequence of hexadecimal digits prefixed with "%". For example, a space becomes %20, and the Japanese character "あ" becomes %E3%81%82 in UTF-8. This lets you safely embed characters into URLs and query strings.

What is the difference between encodeURI and encodeURIComponent?

encodeURIComponent is for encoding a single part of a URL, such as a query parameter value, and it also encodes symbols like : / ? # [ ] @ ! $ & ' ( ) * + , ; = . encodeURI is for encoding a complete URL and leaves those reserved characters unencoded so the URL structure is not broken. To safely pass a parameter value, encodeURIComponent is the usual choice.

Is the text I enter sent to a server?

No. The encoding and decoding happen entirely in JavaScript inside your browser. The text you enter is never sent to or stored on a server.

📖 Free learning posters for students →