Hex 디코더 & 인코더

어떤 형식의 hex든 붙여 넣으면 바로 텍스트가 되고, 텍스트를 hex로 바꿀 수도 있습니다. 이 hex가 무엇인지 모르겠다면 AI가 설명하고 안에 든 Base64, gzip, XOR까지 풀어 줍니다.

태그들: 16진수 인코딩/디코딩 인코더

🚀 177,388 총 변환 (279 이번 달)
바이트 분석
크기
10진수
리틀 엔디언
부호 있음
2진수
8진수
UUID
색상
Base64
Hex 덤프

      

Python 코딩 챌린지로 연습하기

이 에디터에서 직접 문제를 풀고, 샘플 테스트 실행 및 제출, AI 코드 리뷰를 받아보세요.

모든 Python 챌린지
쉬움

직사각형의 둘레

변의 길이로 직사각형의 둘레를 계산합니다.

배우는 내용 산술반환값
초급Learning-pathVariables
쉬움

두 점 사이의 거리

두 점 사이의 직선 거리를 계산합니다.

배우는 내용 피타고라스 정리제곱근
초급함수Learning-path수학
쉬움

세 수의 평균

세 개의 정수를 평균하세요.

배우는 내용 산술나눗셈
초급Learning-pathVariables
쉬움

두 벡터의 내적

두 벡터를 원소별로 곱한 뒤 모두 더합니다. 모든 뉴런의 핵심 연산입니다.

배우는 내용 벡터내적
신경망ai머신 러닝
쉬움

소수 판별

숫자가 소수인지 판별하세요.

배우는 내용 나누어떨어짐 판별반복문 최적화
초급반복문수입문자
쉬움

섭씨를 화씨로 바꾸기

섭씨 온도를 화씨 온도로 변환합니다.

배우는 내용 공식연산자 우선순위
초급Learning-pathVariables
쉬움

대문자 개수 세기

텍스트에 있는 대문자의 개수를 셉니다.

배우는 내용 문자 검사개수 세기
초급Learning-pathStrings
쉬움

한 달의 일수

윤년까지 고려해 한 달이 며칠인지 반환합니다.

배우는 내용 달력 규칙도우미 함수
초급조건문함수Learning-path
쉬움

세 수 중 가장 큰 수

내장 max 함수 없이 세 수 중 가장 큰 수를 고릅니다.

배우는 내용 비교조건 결합
초급조건문Learning-path
쉬움

알파벳 학점

시험 점수를 알파벳 학점으로 바꿉니다.

배우는 내용 if/elif 연쇄값의 범위
초급조건문Learning-path
쉬움

1이 될 때까지 반으로 나누기

수를 몇 번 반으로 나누어야 1이 되는지 셉니다.

배우는 내용 while 반복문개수 세기
초급Learning-path반복문
쉬움

abs 없이 절댓값 구하기

조건문으로 절댓값을 계산합니다.

배우는 내용 부호 바꾸기내장 함수 없이
초급조건문Learning-path

소개

이 온라인 16진수 인코더 도구는 문자열을 16진수 형식으로 변환하고 다시 변환하는 것을 쉽게 만들어 줍니다. 텍스트나 숫자를 다루든, 이 도구는 과정을 단순화하고 시간을 절약해 줍니다.

이 도구 사용 방법

  1. 편집기에 문자열을 직접 붙여넣거나 입력하세요.
  2. 인코드 또는 디코드 버튼을 클릭하여 문자열을 16진수 형식으로 변환하거나 다시 변환하세요.
  3. 인코딩 또는 디코딩 후, 다음을 수행할 수 있습니다:
    • 결과를 다운로드합니다.
    • 짧은 링크를 사용하여 다른 사람과 저장하거나 공유합니다.
    • 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 또는 유니코드 문자 집합에서 데이터를 나타내는 데 자주 사용됩니다.

자세한 내용은 이 유용한 가이드를 확인하세요.

예제

인코딩 전

      
Hello, World!
      
    

인코딩 후

      
48656c6c6f2c20576f726c6421
      
    

Hex를 텍스트로 디코딩: 지원하는 형식

찾은 그대로 16진수를 붙여 넣으세요. 디코더가 공백, 쉼표, 콜론과 0x, \x, % 접두사를 지우고 두 자리마다 1바이트로 바꿉니다.

붙여 넣는 Hex얻는 텍스트
48656c6c6fHello
48 65 6c 6c 6fHello
0x48 0x65 0x6c 0x6c 0x6fHello
\x48\x65\x6c\x6c\x6fHello
48:65:6c:6c:6fHello
c3 a9 74 c3 a9été
f0 9f 98 80😀

바이트를 UTF-8로 읽기 때문에 한글, 중국어, 일본어, 키릴 문자, 악센트 문자, 이모지도 올바르게 디코딩됩니다.

Hex는 암호인가요?

퍼즐이나 CTF에서는 "hex 암호"라고 부르기도 하지만, hex는 암호화가 아니라 인코딩입니다. 두 자리가 1바이트일 뿐이라 이런 디코더로 누구나 원래대로 읽을 수 있습니다. 데이터를 숨기려면 진짜 암호화를, 변경 여부를 확인하려면 SHA-256 같은 해시를 사용하세요.

Hex를 손으로 디코딩하는 방법

16진수를 두 자리씩 나눕니다. 각 쌍은 0부터 255까지의 수로, 첫 자리는 16의 자리, 둘째 자리는 1의 자리입니다(a = 10부터 f = 15). 그 수를 ASCII 표에서 찾으면 글자가 나옵니다.

48 → 4 × 16 + 8 = 72 → "H"
65 → 6 × 16 + 5 = 101 → "e"
6c → 6 × 16 + 12 = 108 → "l"

Base64가 있나요? Base64를 Hex로 변환

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.

0123456789ABCDEF
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.