DevToolBox

Text / ASCII Code Converter(テキスト⇔ASCIIコード変換)

テキストとASCII/Unicodeコードポイントを相互変換します。10進・16進・2進の表示に対応。

進数:
 
ASCII印字可能文字一覧表(32〜126)
文字10進16進文字10進16進文字10進16進
SPACE3220@6440`9660
!3321A6541a9761
"3422B6642b9862
#3523C6743c9963
$3624D6844d10064
%3725E6945e10165
&3826F7046f10266
'3927G7147g10367
(4028H7248h10468
)4129I7349i10569
*422AJ744Aj1066A
+432BK754Bk1076B
,442CL764Cl1086C
-452DM774Dm1096D
.462EN784En1106E
/472FO794Fo1116F
04830P8050p11270
14931Q8151q11371
25032R8252r11472
35133S8353s11573
45234T8454t11674
55335U8555u11775
65436V8656v11876
75537W8757w11977
85638X8858x12078
95739Y8959y12179
:583AZ905Az1227A
;593B[915B{1237B
<603C\925C|1247C
=613D]935D}1257D
>623E^945E~1267E
?633F_955F

How to Use the Text / ASCII Code Converter

This free online tool converts text into character codes (and back) directly in your browser. Choose "テキスト→コード" to see the decimal, hexadecimal, or binary code point for every character in your text, or "コード→テキスト" to reconstruct text from a list of codes. Unlike byte-oriented hex converters, this tool works at the Unicode code point level — each visible character maps to exactly one number, even for multi-byte UTF-8 characters like Japanese text or emoji.

What Is ASCII, and How Does It Relate to Unicode?

ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns a number from 0 to 127 to English letters, digits, punctuation, and control characters. Unicode is a much larger standard that extends this idea to every writing system in the world; the first 128 Unicode code points are identical to ASCII by design, so any text using only English letters and basic punctuation produces the same codes in both systems. This tool shows the full Unicode code point for any character, so values above 127 (Japanese, emoji, accented letters, etc.) are Unicode code points rather than strictly ASCII.

How This Differs from a Hex/Byte Converter

A byte-level hex converter (like our HEX Converter) first encodes text as UTF-8 bytes, so a single Japanese character typically becomes three bytes (six hex digits). This tool instead reports the code point directly — the number Unicode assigns to that one character — so "あ" is simply U+3042 (13890 in decimal), not three separate byte values. Use the byte converter when you need to reason about wire format or file encoding, and this tool when you need the character's own number, as in an ASCII table lookup.

テキスト⇔ASCIIコード変換ツールの使い方

「テキスト→コード」モードでは入力した文字列の各文字を、選択した進数(10進/16進/2進)のコードポイント番号として一覧表示します。 「コード→テキスト」モードでは、スペースまたはカンマ区切りのコード列から元の文字列を復元します。 サロゲートペア(絵文字など)も1文字として正しく扱われ、全ての処理はブラウザ内で完結します。

よくある落とし穴と対処 / Common Pitfalls

落とし穴 / Pitfall問題 / Problem対処 / Fix
コードポイントとUTF-8バイト数を混同する
Confusing code points with UTF-8 byte counts
「あ」は1コードポイントだがUTF-8では3バイト
"あ" is one code point but three UTF-8 bytes
バイト数を知りたい場合はHEX Converterを使う
Use the HEX Converter for byte-level output
絵文字を1文字として扱えない
Failing to treat an emoji as one character
JavaScriptの text.split("") はサロゲートペアを2つに分割してしまう
text.split("") breaks surrogate pairs into two units
Array.from()やcodePointAt()でコードポイント単位に分割する(本ツールは対応済み)
Iterate with Array.from()/codePointAt() instead
128以上をASCIIと呼んでしまう
Calling values above 127 "ASCII"
ASCIIは0〜127のみを定義。128以降はUnicode独自の拡張範囲
ASCII only defines 0-127; higher values are Unicode extensions
128以上は「Unicodeコードポイント」と表記するのが正確
Refer to values above 127 as Unicode code points, not ASCII
コード→テキスト変換時の区切り忘れ
Missing separators when converting codes back to text
16進で桁数を詰めて連結すると桁の切れ目が不明になる
Concatenating hex digits without separators is ambiguous
スペース・改行・カンマのいずれかで各コードを区切る
Separate each code with a space, newline, or comma

言語別コード例 / Code Examples

JavaScript

// テキスト → コードポイント(サロゲートペア対応)
[...."Hi🎉"].map((ch) => ch.codePointAt(0));
// [72, 105, 127881]

// コードポイント → テキスト
String.fromCodePoint(72, 105, 127881); // "Hi🎉"

Python

[ord(ch) for ch in "Hi🎉"]   # [72, 105, 127881]
"".join(chr(c) for c in [72, 105, 127881])  # 'Hi🎉'

変換例 / Before & After

"ABC" (10進)  → 65 66 67
"ABC" (16進)  → 41 42 43
"あ"  (10進)  → 12354   (U+3042、UTF-8では3バイト)
"🎉"  (10進)  → 127881  (U+1F389、サロゲートペアを1文字として扱う)

Why browser-only?

Text you convert here can include tokens, product codes, or partial log lines you would rather not upload. This converter runs entirely in your browser with standard JavaScript APIs (codePointAt, fromCodePoint) — nothing is sent to a server, and it keeps working offline once loaded. Verify it yourself in the DevTools Network tab.

変換対象の文字列にはトークンや社内コードなど、外部送信したくないデータが含まれることがあります。 本ツールは変換の全てがブラウザ内で完結し、データは一切外部送信されません。

開発をもっと効率的に

PR