URL Encoder and Decoder

Encode Arabic URLs as UTF-8 percent-encoding, or decode them back to readable text.

How to use

What it checks and how it works

Percent-encoding writes each byte of a character's UTF-8 form as %XX, as defined in RFC 3986. A URL path in Arabic, such as نعناع, becomes %D9%86%D8%B9%D9%86%D8%A7%D8%B9. Google's URL structure guidance recommends percent-encoding non-ASCII characters in links, and recommends words in your audience's language in the URL. The URL mode keeps the structure: scheme, host, slashes and the ? and & of the query stay as they are, and each path segment and query value is encoded. The value mode encodes everything except letters, digits and - _ . ~, as encodeURIComponent does. Hex digits are written in upper case.

Should my URLs use Arabic or English words?

Google's guidance says to use words in your audience's language in the URL, and to percent-encode non-ASCII characters in links. Both work. Pick one pattern per site and keep it consistent.

Why does the browser show Arabic but the server log shows %D9...?

Browsers display the decoded form in the address bar but send the percent-encoded UTF-8 bytes. The logs show what was sent.

Which mode do I use for a parameter value?

Use Encode a value. It also encodes characters such as / ? & and =, which would otherwise end or split the parameter.

Sources

Related tools

Privacy

Runs in your browser; nothing is uploaded. The interactive tool needs JavaScript.