Encode / Decode

Encoder and Decoder (URL, Base64, HTML, Unicode)

Convert text to and from URL encoding, Base64, HTML entities and Unicode escapes. Type in either box and the other one updates automatically. Non-English text such as Japanese is handled as UTF-8. Everything runs on this page.

Use this for Japanese text or symbols in URLs. Use encodeURIComponent for query parameter values and encodeURI for a whole URL.

  • Base64 is not encryption. Anyone can decode it, so do not use it to hide passwords or personal data.
  • Everything is processed in your browser. Nothing you type is sent or saved.

About this tool

Encode and decode URL encoding (percent-encoding), Base64, HTML entities and Unicode escapes (\uXXXX). Type in either box and the other one converts automatically. Text is handled as UTF-8, with options for encodeURIComponent or encodeURI, + for spaces in form data and URL-safe Base64. Everything runs in your browser.

How to use

  1. Choose URL, Base64, HTML entities or Unicode escape from the tabs.
  2. Set options if needed, such as the URL Method (encodeURIComponent or encodeURI) or URL-safe Base64.
  3. Type in Text to encode, or in Encoded to decode. The other box updates instantly.
  4. Use Copy above each box to copy the result, and Clear to empty both boxes.

Useful for

  • Building URLs or query parameters that contain Japanese text
  • Reading percent-encoded URLs such as %E3%81%82
  • Checking the contents of Base64 in authentication headers or data URLs
  • Escaping < > & to show code inside HTML

FAQ

What is URL encoding?

It replaces characters that cannot appear in a URL, such as Japanese text and some symbols, with a percent sign and hex digits like %E3%81%82. This tool encodes text as UTF-8.

What is the difference between encodeURIComponent and encodeURI?

encodeURIComponent is for parameter values and also encodes / ? & =. encodeURI is for a whole URL and keeps the characters that separate its parts.

Is Base64 encryption?

No. Anyone can decode it, so do not use it to hide passwords or personal information.

Can I convert files to Base64?

No. This tool converts text only. If decoded Base64 is not text, the tool tells you so.

Contact