진법 변환 계산기

Radix Converter

진법 변환 계산기란?

진법(radix)은 숫자를 표현하는 기수 체계입니다. 일상에서 쓰는 10진법 외에 컴퓨터 분야에서 자주 쓰이는 2진법(binary)·8진법(octal)·16진법(hex)을 이 계산기로 자유롭게 상호 변환할 수 있습니다.

사용 방법

입력값과 원본 진법을 선택하고, 대상 진법을 고른 뒤 변환하기를 누릅니다. ↔ 버튼으로 원본·대상 진법을 즉시 맞바꿀 수 있으며, 결과는 2·8·10·16진법 네 가지로 동시에 표시됩니다.

공식·참고표

원본 진법 문자열을 정수로 해석(parseInt(str, from))한 뒤, 대상 진법 문자열로 다시 표현(toString(to))합니다. 16진수는 결과를 대문자로 표시합니다.

예시
2진8진10진16진
10101210A
11111111377255FF
What is the Radix Converter?

A radix (base) is a number system's counting base. Besides everyday decimal (base 10), this tool freely converts between binary, octal, and hexadecimal, which are common in computing.

How to use it

Enter a value, choose its from base, choose a to base, then press Convert. The ↔ button instantly swaps the from/to bases, and the result is shown simultaneously in base 2, 8, 10, and 16.

Formula & reference

The source string is parsed as an integer (parseInt(str, from)) and re-expressed in the target base (toString(to)). Hexadecimal results are shown in uppercase.

Examples
BinaryOctalDecimalHex
10101210A
11111111377255FF
16진수에서 A~F는 무엇을 의미하나요?
16진법은 0~9 다음에 10~15를 표현하기 위해 알파벳 A~F를 사용합니다. A=10, B=11, C=12, D=13, E=14, F=15이며, 대소문자는 구분하지 않지만 이 계산기는 결과를 대문자로 표시합니다.
각 진법에서 사용할 수 없는 숫자를 입력하면 어떻게 되나요?
예를 들어 2진수는 0과 1만, 8진수는 0~7만 사용할 수 있습니다. 원본 진법에서 허용되지 않는 문자를 입력하면 오류로 표시되니, 선택한 진법에 맞는 문자만 입력해야 합니다.
음수도 변환할 수 있나요?
이 계산기는 앞에 마이너스(−) 기호를 붙인 음의 정수도 지원합니다. 부호를 제외한 나머지 문자는 선택한 원본 진법의 유효 문자여야 하며, 변환 결과에도 부호가 그대로 유지됩니다.
What do A-F mean in hexadecimal?
Hexadecimal uses the letters A-F to represent 10-15 after 0-9. A=10, B=11, C=12, D=13, E=14, F=15. Case doesn't matter for input, but this tool always displays results in uppercase.
What happens if I enter an invalid digit for a base?
For example, binary only allows 0 and 1, and octal only allows 0-7. Entering a character not valid for the selected source base will show an error, so make sure your input matches the chosen base.
Can negative numbers be converted?
Yes, this tool supports negative integers prefixed with a minus (−) sign. The remaining characters must be valid for the selected source base, and the sign is preserved in the converted result.

안내: 본 계산기는 일반적인 진법 변환 결과를 제공합니다. 매우 큰 수를 입력하면 자바스크립트의 안전 정수 범위를 벗어나 오차가 발생할 수 있으므로, 정밀한 검증이 필요한 계산에는 별도 확인을 권장합니다.

Note: This calculator provides standard radix conversion results. Extremely large numbers may exceed JavaScript's safe integer range and introduce errors — please double-check figures where precise verification is required.