- 実行ツール
-
学ぶ
Pythonを学ぶ 実行可能な例、NumPy、pandasなど AI・機械学習を学ぶニューラルネット・機械学習・LLMをゼロから C/C++を学ぶ ポインタ、メモリ、STL、モダンC++ C#を学ぶC# 基礎、OOP、LINQ、async、.NET 演習 Matplotlibを学ぶ折れ線・棒・散布図・円グラフをインタラクティブに Rustを学ぶ所有権、トレイト、エラー処理、スレッド Goを学ぶスライス、インターフェース、goroutine、チャネル Pythonアルゴリズム 探索、ソート、再帰、ビジュアライザー O(n) C/C++アルゴリズム CとC++の実装を比較 子ども向けプログラミング 遊びながらプログラミングを学ぼう!
- クイズNEW
- 課題一覧NEW
- 教師向けNEW
- アップデート
- コーヒーをおごる
Hex デコーダー・エンコーダー
どんな形式の Hex でも貼り付ければすぐにテキストに変換、テキストを Hex にも変換できます。この Hex は何?と思ったら、AI が説明し、中の Base64・gzip・XOR まで解読します。
🚀 合計 177,388 回変換 (今月 279 回)
バイト解析
| サイズ | |
|---|---|
| 10進数 | |
| リトルエンディアン | |
| 符号付き | |
| 2進数 | |
| 8進数 | |
| UUID | |
| 色 | |
| Base64 |
Hex ダンプ
はじめに
このオンライン16進エンコーダーツールは、文字列を16進形式に変換したり、元に戻したりするのを簡単にします。テキストや数字を扱う際、このツールはプロセスを簡素化し、時間を節約します。
このツールの使い方
- エディターに文字列を直接貼り付けるか、入力します。
- エンコードまたはデコードボタンをクリックして、文字列を16進形式に変換または元に戻します。
-
エンコードまたはデコード後、以下のことができます:
- 結果をダウンロードする。
- 短縮リンクを使って他の人と保存または共有する。
- GoogleまたはGitHubでサインインして、結果をアカウントに保存し、後で使用する。
16進数とは?
16進数(またはhex)は、バイナリデータの表現を簡素化するための基数16の数値システムです。16のシンボルを使用します:0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F。各16進数字は4ビットのバイナリシーケンスを表し、バイナリ数をより簡単に書いたり読んだりできます。
例えば:
- バイナリから16進数へ:
11010100→D4 - 16進数からバイナリへ:
FFFF3→11111111111111110011
なぜ16進数を使うのか?
16進数は、コンピューティングやデジタルシステムでよく使用されます。これはバイナリよりもコンパクトで読みやすいためです。メモリアドレス、カラーコード、ASCIIやUnicode文字セットでのデータ表現によく使用されます。
詳細については、この 便利なガイドをチェックしてください。
例
エンコード前
Hello, World!
エンコード後
48656c6c6f2c20576f726c6421
Hex をテキストにデコード: 対応している形式
見つけたままの形で16進数を貼り付けてください。デコーダーがスペース、カンマ、コロン、0x・\x・% の接頭辞を取り除き、2桁ごとに1バイトに変換します。
| 貼り付ける Hex | 得られるテキスト |
|---|---|
48656c6c6f | Hello |
48 65 6c 6c 6f | Hello |
0x48 0x65 0x6c 0x6c 0x6f | Hello |
\x48\x65\x6c\x6c\x6f | Hello |
48:65:6c:6c:6f | Hello |
c3 a9 74 c3 a9 | été |
f0 9f 98 80 | 😀 |
バイトは UTF-8 として読み取るため、日本語、中国語、韓国語、キリル文字、アクセント付き文字、絵文字も正しくデコードされます。
Hex は暗号ですか?
パズルや CTF では「hex 暗号」と呼ばれることがありますが、hex は暗号化ではなくエンコーディングです。2桁で1バイトを表すだけなので、このようなデコーダーで誰でも元に戻せます。データを隠すには本物の暗号化を、改ざんの確認には SHA-256 などのハッシュを使いましょう。
Hex を手作業でデコードする方法
16進数を2桁ずつに区切ります。それぞれ 0 から 255 の数で、1桁目が16の位、2桁目が1の位です (a = 10 から f = 15)。その数を ASCII 表で調べると文字がわかります。
48 → 4 × 16 + 8 = 72 → "H"
65 → 6 × 16 + 5 = 101 → "e"
6c → 6 × 16 + 12 = 108 → "l"
Hex to ASCII table
Printable ASCII characters by hex value: row is the first digit, column the second. 41 is "A", 61 is "a", 20 is a space.
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | ␠ |
! |
" |
# |
$ |
% |
& |
' |
( |
) |
* |
+ |
, |
- |
. |
/ |
| 3 | 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
: |
; |
< |
= |
> |
? |
| 4 | @ |
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
K |
L |
M |
N |
O |
| 5 | P |
Q |
R |
S |
T |
U |
V |
W |
X |
Y |
Z |
[ |
\ |
] |
^ |
_ |
| 6 | ` |
a |
b |
c |
d |
e |
f |
g |
h |
i |
j |
k |
l |
m |
n |
o |
| 7 | p |
q |
r |
s |
t |
u |
v |
w |
x |
y |
z |
{ |
| |
} |
~ |
DEL |
Decode hex in code
The same conversion in common languages (UTF-8 text):
# Python
bytes.fromhex("48656c6c6f").decode("utf-8") # 'Hello'
"Hello".encode().hex() # '48656c6c6f'
// JavaScript (Node.js)
Buffer.from("48656c6c6f", "hex").toString("utf8") // 'Hello'
Buffer.from("Hello").toString("hex") // '48656c6c6f'
// Go
b, _ := hex.DecodeString("48656c6c6f") // string(b) == "Hello"
// PHP
hex2bin("48656c6c6f"); // 'Hello'
// C#
Encoding.UTF8.GetString(Convert.FromHexString("48656c6c6f"));
# Bash
echo 48656c6c6f | xxd -r -p # Hello
Hex decoder FAQ
How do I decode hex to text?
Paste the hex into the right box. It turns into text on the left as you type, in any format: 48656c6c6f, 48 65 6c 6c 6f, 0x48 0x65, \x48\x65, 48:65 or a hex dump from xxd. Type text on the left to get its hex.
Why does the decoded text show strange characters?
The bytes are not text in the selected encoding. Try UTF-16 or Latin-1 in "Text encoding". If it still looks like noise, the hex is binary data such as a hash, a key or a file: the byte inspector shows what it probably is, and Explain with AI can tell you more.
What does 0x mean in hex?
0x marks a hexadecimal number in C, Java, JavaScript, Python and most other languages, so 0x41 is 65 in decimal, the letter "A". The decoder removes 0x, \x and % prefixes for you.
How do I convert hex to decimal?
Paste the hex and look at the byte inspector: it shows the number in decimal (big-endian and little-endian), signed, binary and octal. For example FF is 255, and 01 00 is 256 in big-endian or 1 in little-endian.
What is the difference between hex and Base64?
Both write bytes as text. Hex uses two characters per byte, so it doubles the size but is easy to read. Base64 uses four characters for every three bytes, about 33% bigger, which is why it is used in emails, data URLs and JSON. If you paste Base64 here, the page offers to convert it.
Can I decode a hex dump or a whole file?
Yes. Paste output from xxd or hexdump -C and the offsets and text columns are ignored. Use "Open file" to see any file as hex, and "Download bytes" to save decoded hex as a file: PNG, JPEG, PDF, ZIP and other types are detected from their first bytes.
What does Explain with AI do?
It tells you what an unknown hex string probably is: a hash, a UUID, a file header, a network packet or text that is encoded again (Base64, gzip, XOR, ROT13). When more decoding steps are needed, your browser runs them and shows the result, so you see the real decoded data, not a guess.
Is my data sent to a server?
No. Decoding, encoding and the byte inspector run in your browser. The hex is only sent when you press Explain with AI, and then only to answer that question.