گۆڕینی دووجا/ هەژدە/ دەجا
ژمارەیەک بگۆڕە لە نێوان دووانەی، هەشتەیی، دەیەی و هەژدەیەی، بە جیاکردنەوەی ژمارەکان
ئەنجامەکان نوێدەکرێنەوە کاتێک کە نوسیت
دەربارەی ئەم ژمێرە
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.
پرسیاری زۆر کراوە
چۆن دەقی دەقەکان دەگۆڕم بۆ هەشت بەشە؟
دووبارە دابەش بکە بە 16 و پاشەکەوتەکان بخوێنەوە لە دوایینەوە بۆ یەکەم، بەکارهێنانی A-F بۆ 10-15. دەقیقەی 255 FF یە لە هەژدە و 11 لە دووانە
بۆچی سیستمی هەشتەمی دەقۆزراو بەکاردەهێنرێت لە کۆمپیوتەردا؟
هەر ژمارەیەکی هەژدە بەتەواوەتی چوار بیتی دووانەیە، بۆیە هەژدە ڕێگەیەکی کۆمپیوتەرییە بۆ نووسینی نرخی بایتەکان و ناوەکانی بیرەوەری - 0xFF یەک بایت لە هەموویان.
ئایا دەتوانم ژمارەکان بە پێشەکی ٠x، ٠b یان ٠o دابنێرم؟
بەڵێ. پێشەکی 0x (هەشت)، 0b (دوو) یان 0o (نۆ) بە ئۆتۆماتیکی لادەدرێت، کەواتە دەتوانیت نرخەکان ڕاستەوخۆ لە کۆدەکە دابنێیت. تەنها دڵنیابە لەوەی کە بنکەی داخڵکردنەکەت هەڵبژێریت لەگەڵ ئەو ژمارەیانەی کە دایدەخەیت گونجاو بێت.
درێژی بیت چی پێ دەڵێم؟
ئەمە ژمارەی ژمارە دووانەیە کە نرخەکە پێویستی پێیەتی. دەقیقە ٢٥٥ ٨ بیتە (یەک بایت)ە؛ ٢٥٦ پێویستی بە ٩ بیتە. درێژی بیتەکە سودبەخشە بۆ هەڵبژاردنی جۆرەکانی زانیاری و پشکنینی ئەگەر نرخەکە لە بایتێکدا بێت، وشەیەکی ١٦ بیتی یان ٣٢ بیتی تۆمارکردن.
بۆچی ٨ بەکاردێت؟
هەشتەیی بە سێ بەش دابەشکراوە و بە گشتی لە مۆڵەتی فایلەکانی یونیکسدا دەردەکەون (وەک ٧٥٥ یان ٦٤٤) و هەندێک لە سیستەمە کۆنەکان. هەر ژمارەیەکی هەشتەیی بەتەواوەتی سێ بیتی دووانەی پێدەبەخشێت، هەر ژمارەیەکی هەژدەیەش بەتەواوەتی چوار بیتی پێدەبەخشێت.
بۆچی "ژمارەی ناڕاستەوخۆ بۆ ئەم بنکە"م پێ گەیشت؟
ژمارەیەک کە دایت ناکرێت لە بنکەی هەڵبژێردراودا - بۆ نمونە پیتی F یان ژمارە ٨ لە ژمارە دووانەیەدا، کە تەنها ڕێگە بە ٠ و ١ دەدات. گۆڕینی بنکەی داهێنان بۆ ئەوەی لەگەڵ نرخەکەتدا بگونجێت، یان چاککردنی ژمارەی دەرەوەی بازنەکە.
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);
ئەنجامەکان تەنها بۆ ڕێنمایی گشتین، نەک بۆ ڕاوێژی دارایی، پزیشکی یان باج.