ਬਾਈਨਰੀ / ਹੈਕਸ / ਦਸ਼ਮਲਵ ਕਨਵਰਟਰ

ਇੱਕ ਨੰਬਰ ਨੂੰ ਬਾਈਨਰੀ, ਅੱਠੀਅਾਂ, ਦਸ਼ਮਲਵ ਅਤੇ ਹੈਕਸਾਦਸ਼ਮਲਵ ਵਿੱਚ ਬਦਲੋ, ਇੱਕ ਤੋੜ ਟੇਬਲ ਨਾਲ ।

ਦਸ਼ਮਲਵ —
ਬਾਈਨਰੀ —
ਹੈਕਸਾ —
ਅੱਠਵਾਂ —
ਬਿੱਟ ਲੰਬਾਈ —

ਨਤੀਜੇ ਜਿਵੇਂ ਤੁਸੀਂ ਟਾਈਪ ਕਰਦੇ ਹੋ ਅੱਪਡੇਟ ਹੁੰਦੇ ਹਨ ।

ਕੀ ਇਹ ਕੈਲਕੁਲੇਟਰ ਤੁਹਾਨੂੰ ਸਹੀ ਜਵਾਬ ਦੇਵੇਗਾ?

ਇਸ ਕੈਲਕੁਲੇਟਰ ਬਾਰੇ

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.

ਕੰਪਿਊਟਿੰਗ ਵਿੱਚ ਹੈਕਸਾਡਿਸਮਲ ਕਿਉਂ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ?

ਹਰੇਕ ਹੈਕਸ ਅੰਕ ਠੀਕ ਤਰ੍ਹਾਂ4ਬਾਈਨਰੀ ਬਿੱਟਾਂ ਨੂੰ ਮੈਪ ਕਰਦਾ ਹੈ, ਇਸ ਲਈ ਹੈਕਸ ਬਾਈਟ ਮੁੱਲ ਅਤੇ ਮੈਮੋਰੀ ਐਡਰੈੱਸ ਲਿਖਣ ਲਈ ਇੱਕ ਕੰਪੈਕਟ, ਪੜ੍ਹਨਯੋਗ ਢੰਗ ਹੈ - 0xFF ਸਭ ਵਿੱਚੋਂ ਇੱਕ ਬਾਈਟ ਹੈ।

ਕੀ ਮੈਂ 0x, 0b ਜਾਂ 0o ਅਗੇਤਰ ਨਾਲ ਅੰਕ ਭੇਜ ਸਕਦਾ ਹਾਂ?

ਹਾਂ । ਇੱਕ 0x (hex), 0b (binary) ਜਾਂ 0o (octal) ਅਗੇਤਰ ਆਟੋਮੈਟਿਕ ਹੀ ਹਟਾਇਆ ਜਾਂਦਾ ਹੈ, ਤਾਂ ਕਿ ਤੁਸੀਂ ਕੋਡ ਤੋਂ ਮੁੱਲ ਸਿੱਧੇ ਹੀ ਚੇਪੋ ਸਕੋ । ਇਹ ਯਕੀਨੀ ਬਣਾਓ ਕਿ ਇੰਪੁੱਟ ਬੇਸ ਜੋ ਤੁਸੀਂ ਚੁਣਿਆ ਹੈ, ਤੁਹਾਡੇ ਦਿਖਾਈ ਦਿੱਤੇ ਅੰਕ ਨਾਲ ਮਿਲਦਾ ਹੈ ।

ਬਿੱਟ ਲੰਬਾਈ ਮੈਨੂੰ ਕੀ ਦੱਸਦੀ ਹੈ?

It is how many binary digits the value needs. Decimal 255 is 8 bits (one byte); 256 needs 9 bits. Bit length is useful for choosing data types and checking whether a value fits in a byte, 16-bit word or 32-bit register.

ਅੱਠਵਾਂ ਕੀ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ?

ਅੱਠਕ ਬਿੱਟਾਂ ਨੂੰ ਤਿੰਨਾਂ ਵਿੱਚ ਗਰੁੱਪ ਕਰਦਾ ਹੈ ਅਤੇ ਮੁੱਖ ਤੌਰ ਉੱਤੇ ਯੂਨਿਕਸ ਫਾਇਲ ਅਧਿਕਾਰਾਂ (ਜਿਵੇਂ ਕਿ 755 ਜਾਂ 644) ਅਤੇ ਕੁਝ ਪੁਰਾਣੇ ਸਿਸਟਮਾਂ ਵਿੱਚ ਵੇਖਾਇਆ ਜਾਂਦਾ ਹੈ । ਹਰ ਅੱਠਕ ਅੰਕ ਤਿੰਨ ਬਾਈਨਰੀ ਬਿੱਟਾਂ ਲਈ ਮੈਪ ਕਰਦਾ ਹੈ, ਜਿਵੇਂ ਕਿ ਹਰ ਹੈਕਸ ਅੰਕ ਚਾਰ ਲਈ ਮੈਪ ਕਰਦਾ ਹੈ ।

ਮੈਨੂੰ "ਇਸ ਬੇਸ ਲਈ ਗਲਤ ਨੰਬਰ" ਕਿਉਂ ਮਿਲਿਆ?

ਇੱਕ ਅੰਕ, ਜੋ ਕਿ ਤੁਸੀਂ ਦਿੱਤਾ ਹੈ, ਚੁਣੇ ਬੇਸ ਵਿੱਚ ਮਨਜ਼ੂਰ ਨਹੀਂ ਹੈ, ਜਿਵੇਂ ਕਿ ਅੱਖਰ F ਜਾਂ ਬਾਈਨਰੀ ਨੰਬਰ ਵਿੱਚ ਅੰਕ 8, ਜੋ ਕਿ ਕੇਵਲ0ਅਤੇ 1 ਲਈ ਮਨਜ਼ੂਰ ਹੈ । ਇੰਪੁੱਟ ਬੇਸ ਨੂੰ ਆਪਣੇ ਮੁੱਲ ਨਾਲ ਮਿਲਦਾ ਤਬਦੀਲ ਕਰੋ ਜਾਂ ਰੇਜ਼ ਤੋਂ ਬਾਹਰ ਅੰਕ ਨੂੰ ਠੀਕ ਕਰੋ ।

❤️ ਪਿਆਰ Calculator.Free? ਸਾਂਝਾ ਕਰੋ

𝕏  X Facebook Reddit
API — ਕੋਡ ਤੋਂ ਇਹ ਕੈਲਕੁਲੇਟਰ ਵਰਤੋਂ

ਇਸ ਕੈਲਕੁਲੇਟਰ ਨੂੰ ਮੁਫਤ JSON ਅੰਤ ਬਿੰਦੂ ਵਜੋਂ ਕਾਲ ਕਰੋ - ਕੋਈ ਕੁੰਜੀ ਲੋੜੀਦੀ ਨਹੀਂ ਹੈ । ਹੇਠ ਦਿੱਤੇ ਖੇਤਰ ਮੁੱਲ ਨੂੰ ਕਿਊਰੀ ਪੈਰਾਮੀਟਰ ਜਾਂ JSON ਵਾਂਗ ਭੇਜੋ । ਜੋ ਵੀ ਤੁਸੀਂ ਛੱਡਦੇ ਹੋ ਉਹੀ ਡਿਫਾਲਟ ਵਰਤਿਆ ਜਾਵੇਗਾ, ਜਿਸ ਨਾਲ ਇਹ ਸਫ਼ਾ ਪਹਿਲਾਂ ਭਰਿਆ ਗਿਆ ਹੈ; ਅਣਜਾਣ ਪੈਰਾਮੀਟਰ 400 ਹੈ, ਕਦੇ ਵੀ ਸ਼ਾਂਤ ਸ਼ੂਗਰ ਨਹੀਂ ਹੈ । ਪੂਰਾ 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);

ਨਤੀਜੇ ਸਿਰਫ਼ ਆਮ ਦਿਸ਼ਾ ਨਿਰਦੇਸ਼ ਲਈ ਹਨ, ਵਿੱਤੀ, ਮੈਡੀਕਲ ਜਾਂ ਟੈਕਸ ਸਲਾਹ ਨਹੀਂ ਹਨ।