- Ausführende
-
Lernen
Python lernen Ausführbare Beispiele, NumPy, pandas und mehr KI / Machine Learning lernenNeuronale Netze, ML und LLMs von Grund auf C/C++ lernen Zeiger, Speicher, STL und modernes C++ C# lernenC#-Grundlagen, OOP, LINQ, Async und .NET-Übungen Matplotlib lernenLinien-, Balken-, Streu- und Kreisdiagramme mit interaktiven Visualisierungen Rust lernenOwnership, Traits, Fehlerbehandlung und Threads Go lernenSlices, Interfaces, Goroutinen und Channels Python-Algorithmen Suche, Sortierung, Rekursion und Visualisierungen O(n) C/C++-Algorithmen Implementierungen in C und C++ vergleichen Programmieren für Kinder Spielend programmieren lernen!
- AufgabenNeu
- Für LehrkräfteNeu
- Aktualisierungen
- Spendier mir einen Kaffee
Hex Decoder & Encoder
Hex in jedem Format einfügen und sofort den Text sehen, oder Text in Hex umwandeln. Unklar, was ein Hex-String ist? Die KI erklärt ihn und dekodiert enthaltenes Base64, gzip oder XOR.
🚀 177,388 Gesamtumwandlungen (279 diesen Monat)
Byte-Inspektor
| Größe | |
|---|---|
| Dezimal | |
| Little-Endian | |
| Vorzeichenbehaftet | |
| Binär | |
| Oktal | |
| UUID | |
| Farbe | |
| Base64 |
Hex-Dump
Übe Python mit Coding Challenges
Löse praktische Aufgaben direkt im Editor: Führe die Beispieltests aus, reiche ein und erhalte ein KI-Code-Review.
Einführung
Dieses Online-Tool zur Hexadezimal-Codierung erleichtert das Umwandeln von Zeichenfolgen in das Hexadezimalformat und zurück. Egal, ob Sie mit Text oder Zahlen arbeiten, dieses Tool vereinfacht den Prozess und spart Ihnen Zeit.
Wie man dieses Tool benutzt
- Fügen Sie Ihre Zeichenfolge direkt in den Editor ein oder geben Sie sie ein.
- Klicken Sie auf die Schaltfläche Codieren oder Decodieren, um Ihre Zeichenfolge in das Hexadezimalformat zu konvertieren oder daraus zurück.
-
Nach dem Codieren oder Decodieren können Sie:
- Das Ergebnis herunterladen.
- Es mit anderen über einen Kurzlink speichern oder teilen.
- Sich mit Google oder GitHub anmelden, um Ihre Ergebnisse für die spätere Verwendung in Ihrem Konto zu speichern.
Was ist Hexadezimal?
Hexadezimal (oder Hex) ist ein Zahlensystem zur Basis 16, das die Darstellung von Binärdaten vereinfacht. Es verwendet 16 Symbole: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. Jedes Hex-Zeichen repräsentiert eine 4-Bit-Binärsequenz, was das Schreiben und Lesen von Binärzahlen erheblich erleichtert.
Zum Beispiel:
- Binär zu Hex:
11010100→D4 - Hex zu Binär:
FFFF3→11111111111111110011
Warum Hexadezimal verwenden?
Hexadezimal wird häufig in der Informatik und in digitalen Systemen verwendet, da es kompakter und lesbarer als Binär ist. Es wird oft für Speicheradressen, Farbcodes und zur Darstellung von Daten in ASCII- oder Unicode-Zeichensätzen verwendet.
Für weitere Details schauen Sie sich diesen hilfreichen Leitfaden an.
Beispiele
Vor der Codierung
Hallo, Welt!
Nach der Codierung
48656c6c6f2c20576f726c6421
Hex in Text dekodieren: unterstützte Formate
Füge Hex so ein, wie du es gefunden hast. Der Decoder entfernt Leerzeichen, Kommas, Doppelpunkte und die Präfixe 0x, \x oder % und macht aus je zwei Ziffern ein Byte.
| Eingefügtes Hex | Ergebnis |
|---|---|
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 | 😀 |
Die Bytes werden als UTF-8 gelesen, daher werden Umlaute, Kyrillisch, Chinesisch, Japanisch, Koreanisch und Emojis richtig dekodiert.
Ist Hex eine Verschlüsselung?
Rätsel und CTFs sprechen oft von "Hex-Chiffre", aber Hex ist eine Kodierung, keine Verschlüsselung: Jedes Ziffernpaar ist ein Byte, und jeder kann es mit einem Decoder wie diesem zurücklesen. Um Daten zu verbergen, nutze echte Verschlüsselung; um zu prüfen, ob sie unverändert sind, einen Hash wie SHA-256.
Hex von Hand dekodieren
Teile das Hex in Paare. Jedes Paar ist eine Zahl von 0 bis 255: Die erste Ziffer zählt Sechzehner, die zweite Einer (a = 10 bis f = 15). Schlage die Zahl in der ASCII-Tabelle nach, um den Buchstaben zu erhalten.
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.