Convert a String to Punycode
Encode a Unicode string to its Punycode representation. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Convert a String to Punycode
- 1. Paste the Unicode string. Enter the text containing non-ASCII characters, such as an internationalized domain label or accented word, into the input pane.
- 2. Read the Punycode output. The tool applies the Punycode algorithm from RFC 3492 to represent the Unicode string using only ASCII characters, showing the result immediately.
- 3. Copy the encoded label. Copy the Punycode result and use it wherever an ASCII-only representation of an internationalized name is required, such as a DNS label.
When to use Convert a String to Punycode
Convert a String to Punycode encodes a Unicode string into its Punycode representation, the ASCII-compatible encoding domain names use to support non-Latin characters. Use it whenever a system needs the ASCII form of an internationalized name.
- Registering an internationalized domain name. You want to register a domain like 'münchen.de' and need to see the exact Punycode label, prefixed with 'xn--', that the registrar will actually store.
- Debugging an IDN redirect. A browser address bar shows a Punycode-looking hostname and you want to confirm what Unicode name it corresponds to by encoding the suspected original string.
- Testing IDN handling in an application. You are building URL parsing logic and need a known Punycode encoding of a Unicode domain label to use as a test fixture.
- Understanding a phishing-style lookalike domain. You suspect a domain uses lookalike Unicode characters and want to encode the visible label to Punycode to compare it against the legitimate ASCII domain.
Examples
Punycode
Input
münchen
Output
mnchen-3ya
About the Convert a String to Punycode tool
Convert a String to Punycode does its work locally, right in the browser. Encode a Unicode string to its Punycode representation. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the String Tools collection on EditSafely, a set of 159 small, focused String utilities that share the same instant, private workspace.
There is nothing to configure. Provide the input and the result appears on its own. A worked example further down the page shows exactly what the tool produces for a real input.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Does Convert a String to Punycode cost anything?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.