진법 변환 계산기
Radix Converter
| 2 (binary) | 8 (octal) | 10 (decimal) | 16 (hex) |
|---|---|---|---|
진법 변환 계산기란?
진법(radix)은 숫자를 표현하는 기수 체계입니다. 일상에서 쓰는 10진법 외에 컴퓨터 분야에서 자주 쓰이는 2진법(binary)·8진법(octal)·16진법(hex)을 이 계산기로 자유롭게 상호 변환할 수 있습니다.
사용 방법
입력값과 원본 진법을 선택하고, 대상 진법을 고른 뒤 변환하기를 누릅니다. ↔ 버튼으로 원본·대상 진법을 즉시 맞바꿀 수 있으며, 결과는 2·8·10·16진법 네 가지로 동시에 표시됩니다.
공식·참고표
원본 진법 문자열을 정수로 해석(parseInt(str, from))한 뒤, 대상 진법 문자열로 다시 표현(toString(to))합니다. 16진수는 결과를 대문자로 표시합니다.
| 2진 | 8진 | 10진 | 16진 |
|---|---|---|---|
| 1010 | 12 | 10 | A |
| 11111111 | 377 | 255 | FF |
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.
| Binary | Octal | Decimal | Hex |
|---|---|---|---|
| 1010 | 12 | 10 | A |
| 11111111 | 377 | 255 | FF |
자주 묻는 질문
16진수에서 A~F는 무엇을 의미하나요?
각 진법에서 사용할 수 없는 숫자를 입력하면 어떻게 되나요?
음수도 변환할 수 있나요?
FAQ
What do A-F mean in hexadecimal?
What happens if I enter an invalid digit for a base?
Can negative numbers be converted?
안내: 본 계산기는 일반적인 진법 변환 결과를 제공합니다. 매우 큰 수를 입력하면 자바스크립트의 안전 정수 범위를 벗어나 오차가 발생할 수 있으므로, 정밀한 검증이 필요한 계산에는 별도 확인을 권장합니다.
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.