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.
Used in data URLs, email attachments and API authentication headers. Text is converted as UTF-8.
Replaces < > & " ' with < and similar, so text can be shown as-is inside HTML.
Converts characters to the \u3042 form used in JavaScript and JSON. \u{1F600} is also decoded.
- 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
- Choose URL, Base64, HTML entities or Unicode escape from the tabs.
- Set options if needed, such as the URL Method (encodeURIComponent or encodeURI) or URL-safe Base64.
- Type in Text to encode, or in Encoded to decode. The other box updates instantly.
- 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.
Updates to this tool
All updatesReleased 17 new tools, including SSL, DNS and IP checks, JSON-LD, llms.txt and favicon generators, a tax calculator and a Japanese era converter
Other free tools
All 183 free tools- JSON Formatter and ValidatorFormat or minify JSON and find syntax errors with their position.
- Hash and UUID GeneratorCalculate MD5 and SHA hashes of text or files, verify checksums and generate UUID v4 in bulk.
- Regex TesterTest JavaScript regular expressions with highlighted matches, groups and a replacement preview.
- Unix Timestamp ConverterConvert Unix timestamps (seconds or milliseconds) to and from dates in Japan time, UTC and ISO 8601.
- CSV to JSON / JSON to CSV ConverterConvert CSV to JSON and JSON to CSV with quoted values, table preview and Excel-ready download.
- Color Code Converter (HEX, RGB, HSL, CMYK)Convert colors between HEX, RGB, HSL, HSV and CMYK, find the nearest color name and copy CSS.
- Markdown Preview and Markdown to HTML ConverterWrite Markdown with a live preview and copy the converted HTML. Tables and task lists supported.
- JWT DecoderDecode a JWT to view its header and payload, with exp and iat converted to dates.