טעקסט פֿאַרבtransform-type
װיפֿל אַ נומער װידערצושטעלן צװישן בײַנער, אַקטעל, דעצימאַל און העקסאַדעל, מיט אַ צעטיילונג־טבילה
רעזולטאטן װי איר שרײַבט
װײַז די װײַז־פּראָגראַם
A binary, hex and decimal converter shows the same whole number across number bases. Computers ultimately work in binary (base 2), but programmers routinely switch between bases to make values readable: decimal (base 10) for everyday quantities, hexadecimal (base 16) for byte values and memory addresses, and octal (base 8) for things like Unix file permissions. This converter takes a whole number in any of those four bases and shows it in all four at once, along with its bit length. The digits allowed in each base go up to one less than the base — binary uses 0–1, octal 0–7, decimal 0–9 and hex 0–9 then A–F for 10–15 — and the tool rejects digits that are out of range for the base you pick.
As a worked example, the decimal value 255 is FF in hexadecimal, 377 in octal and 11111111 in binary — eight bits all set, i.e. exactly one byte at its maximum. To convert decimal to hex by hand you repeatedly divide by 16 and read the remainders from last to first; the calculator does it instantly and also accepts input prefixed with 0x (hex), 0b (binary) or 0o (octal) and handles negative numbers.
The reason hexadecimal is so common in computing is that each hex digit maps to exactly four binary bits (a nibble), so two hex digits describe one byte with no ambiguity — which is why colour codes like #FF8800, MAC addresses and memory dumps are written in hex. This tool is handy for bit masks, colour values, debugging register contents and any low-level work where you need to see the same number across bases.
פֿראַגעס
װי װײַז איך אױס די װײַז־פֿאַרב פֿון אַ בילד?
Repeatedly divide by 16 and read the remainders from last to first, using A–F for 10–15. Decimal 255 is FF in hex and 11111111 in binary.
װאָס איז דער װײַז פֿון דער װײַב?
יעדער העקסיקאָנדיסק ציפֿער איז צוגעצויגן צו פּונקט פֿיר בײַנאַרישע ביטן, אַזוי העקסיקאָנדיסק איז אַ קאָמפּאַקטע, לייענלעכע אופֿן צו שרײַבן װײַט־באַטרעפֿונגען און זכּרון־אַדרעסן — 0xFF איז אַ װײַט פֿון אַלע
קען איך אַרײַנשרײַבן נומערן מיט 0x, 0b אָדער 0o צוגאָב?
יָה. אַ פֿירער־פֿירער 0x (העקסיק), 0b (בינארי) אָדער 0o (אָקטאַל) איז אויטאָמאַטיש אָפּגעװײסן, אַזוי אַז איר קענט אָנקלײַבן באַטרעף גלייך פֿון קאָד. נאָר באַשטעטיקן אַז די אַרײַנשרײַב־באזירטע איר האָט אויסגעקליבן שײצט זיך מיט די ציפֿערן איר האָט אָנגעשריבן
וואָס זאָגט מיר די ביט־לענג?
דאָס איז די צאָל פֿון בײַנעציעלע ציפֿערן װאָס דער באַטרעף דאַרף. 255 איז 8 ביטן (אײן װײַטער־פֿאַרב); 256 דאַרף 9 ביטן. די ביט־לענג איז נייטיק װי צו קלײַבן דאַטן־סאָרטן און צו באַשטעטיקן צי אַ באַטרעף פּאַסט אין אַ װײַטער־פֿאַרב, 16־ביט וואָרט אָדער 32־ביט רעגיסטראַציע
פֿאַרװאָס איז אַקטעל געניצט?
אױטשעװטער גרופּעט ביזטן אין דריטעלעך און װײַזט זיך בפֿרט אין Unix טעקע־רײַטונגען (װי 755 אָדער 644) און אין עטלעכע אַלט־סיסטעמען. װײַל אױטשעװטער ציפֿער װײַזט צו פּונקט דריי בײַנערישע ביטן, װי אױטשעװטער ציפֿער װײַזט צו צװײ
װאָס האָט מיר געװען?
אַ ציפֿער װאָס דו האָסט אױסגעלייגט איז ניט דערלויבט אין דער אויסגעקליבן באַזע — למשל, דער שריפֿט F אָדער די ציפֿער 8 אין אַ בײַנאַריאַן נומער, װאָס לאָזט בלויז 0 און 1. װײַז די אױסגעלייגט באַזע צו װײַזן װי דו װילסט, אָדער װײַז די ציפֿער אױף דער אױסגעלייגטער באַזע
API — ניצע דעם קאַלקולאַטאָר פֿון קאָד
קלײַב אױס דעם קלײנער װי אַ פֿרײַן JSON סוף־פּונקט — קײן קלײַב ניט נייטיק. שיקן די פֿעלדער־באַטרעף אונטער דעם װי אַ פֿראַגע־פּאַראַמעטער אָדער JSON Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. לייענען די גאַנץ API דאָקומענטאַציע →
סוף־פּראָצעס
GET https://calculator.free/api/v1/binary-hex/
curl
curl "https://calculator.free/api/v1/binary-hex/?value=255&base=10"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/binary-hex/?" + new URLSearchParams({
"value": "255",
"base": "10"
}));
const data = await r.json();
console.log(data.results);
רעזולטאטן זײַנען אָפּשאַצונגען נאָר פֿאַר אַלגעמיינע װײַזן, ניט פֿאַר פינאַנציעל, מעדיציניש אָדער באַדערפֿענישן