String zu Zeichencode
Konvertiert jedes Zeichen in einer Zeichenkette in seinen numerischen Zeichencode.
Über String to Charcode
String-zu-Charcode converts each character in a text string to its numeric Unicode code point, ASCII value, or UTF-16 code unit in decimal, hexadecimal, or octal format, and performs the reverse conversion from numeric codes back to characters. Understanding the numeric representation of characters is essential for diagnosing encoding issues, constructing escape sequences in source code, and working with character sets at the byte level. The tool correctly handles multi-byte Unicode characters including emoji, CJK ideographs, and supplementary plane code points, displaying both the JavaScript charCodeAt value and the full Unicode codePointAt value for characters above U+FFFF to avoid surrogate-pair confusion.
So verwenden Sie es
Geben Sie or paste your text into the input field and the numeric code for each character appears sofort as a space-separated list. Choose the numeric base format from the selector: decimal for standard ASCII table lookups, hexadecimal in U+XXXX format for Unicode documentation, or octal for C and shell escape sequences. To convert codes back to characters, switch to decode mode, enter the space-separated numeric codes in the chosen base, und klicken Sie auf Convert. The tool shows both the JavaScript charCodeAt and codePointAt values for any character to clarify surrogate pair encoding for supplementary plane characters.
Häufige Anwendungsfälle
- Diagnose von Zeichenkodierungsfehlern in Webanwendungen durch Inspektion der genauen Codepunkte unerwarteter oder verstümmelter Zeichen
- Auffinden von Unicode-Codepunkten für spezielle Symbole, mathematische Operatoren, Pfeile und Emoji zur Verwendung in HTML-Entities oder Escape-Sequenzen
- Generierung von C-, Java- oder JavaScript-Unicode- oder ASCII-Escape-Sequenzen aus Zeichen, die nicht direkt im Quellcode eingegeben werden können
- Erkennung versteckter nicht druckbarer Zeichen, Zero-Width-Joiner oder Steuerzeichen, die unsichtbar in eingefügten Text oder API-Antworten eingebettet sind
- Überprüfung der korrekten Zeichenkodierung internationalisierter Strings durch Vergleich erwarteter und tatsächlicher Unicode-Codepunkt-Sequenzen