숫자 기본 변환기
이진, 팔진법, 십진법 및 십육진법 사이의 숫자를 변환합니다.
입력하는 동안 결과가 업데이트됩니다.
이 계산기에 대해
A number base converter rewrites an integer from one positional base to another — binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). It reads your value in the source base, works out its plain decimal value, and re-expresses that value in the target base.
Each base uses a fixed set of digits: 0–1 for binary, 0–7 for octal, 0–9 for decimal and 0–9 then A–F for hexadecimal, where A–F stand for 10–15. Because 16 is 2⁴, each hex digit maps to exactly four binary digits, which is why programmers use hex as shorthand for raw bytes.
Worked example: the decimal number 255 is 11111111 in binary and FF in hexadecimal, since 255 = 15×16 + 15. The converter also reports the intermediate decimal value so you can check the working. A results table shows the same number in all four bases at once, and an invalid digit for the chosen source base is flagged rather than silently miscounted.
자주 묻는 질문
십진법을 이진법으로 변환하는 방법은 무엇입니까?
Repeatedly divide by 2 and read the remainders from bottom to top. For example 10 in decimal is 1010 in binary, and 255 is 11111111.
16진법은 무엇을 위해 사용되나요?
16진법(16진법 기준)은 4개의 이진 비트를 한 자리(0-9, A-F)로 묶어서 바이트를 쓰는 간단한 방법입니다. 16진법에서 255는 FF입니다.
내 번호에 대시가 표시되는 이유는 무엇입니까?
숫자는 소스 기준에 맞아야 합니다. 예를 들어 이진법에서는 0과 1, 십육진법에서는 0-9와 A-F만 맞아야 합니다.
16진법에서 A에서 F까지의 글자는 무엇을 의미합니까?
A는 10이고, B는 11이고, F는 15입니다. 이것은 기본 16이 15까지 숫자를 한 장소에 맞추기 전에 운반해야하기 때문에 가능합니다.
왜 각 16진수 자리가 4개의 이진자리와 같습니까?
Because 16 equals 2 to the fourth power, every hexadecimal digit covers exactly four bits. So the byte 11111111 groups into 1111 1111, which is FF — this number base converter does that grouping for you.
이 변환기는 매우 큰 숫자를 처리 할 수 있습니까?
정수에 대해 작동하며 정확하게 저장된 정수 범위까지 정확합니다(약 9 쿼드리리온, 2⁵³). 그 이상의 경우, 매우 긴 이진 또는 십육진법 문자열은 마지막 자리에서 정확성을 잃을 수 있습니다.
API — 코드에서 이 계산기를 사용
이 계산기를 무료 JSON 엔드포인트로 호출하세요. 키가 필요하지 않습니다. 아래 필드 값을 쿼리 매개 변수 또는 JSON으로 보내십시오. 누락된 모든 값은 이 페이지에서 미리 채워진 기본값을 사용합니다. 알 수 없는 매개변수는 400이며, 절대 0이 아닙니다. 전체 API 문서 읽기 →
끝점
GET https://calculator.free/api/v1/number-base/
curl
curl "https://calculator.free/api/v1/number-base/?amount=255&from=10&to=2"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/number-base/?" + new URLSearchParams({
"amount": "255",
"from": "10",
"to": "2"
}));
const data = await r.json();
console.log(data.results);
결과는 재정, 의료 또는 세금 조언이 아닌 일반적인 지침을위한 추정치입니다.