Free Tool Directory / Lwm yam cuab yeej / Number Base Converter

Number Base Converter

Dawb tus lej hloov pauv: hloov ntawm tus lej lej, hexadecimal, binary thiab octal, suav nrog cov lej loj heev nrog BigInt. Txhua yam hauv koj tus browser.

Hloov cov lej ntawm tus lej lej, hexadecimal, binary thiab octal, suav nrog cov lej loj heev tau ua raws nraim nrog BigInt, tag nrho hauv koj tus browser. Ntaus tus lej, xaiv nws lub hauv paus lossis tawm hauv nws pib-nrhiav, thiab pom tus nqi tib yam hauv plaub lub hauv paus. Cov tub ntxhais kawm programming tuaj yeem tshawb xyuas tus nqi xim hex tiv thaiv nws daim ntawv lej hauv vib nas this.

Qhib lub cuab yeej →

Dawb siv, tsis muaj npe. Cov cuab yeej qhib ntawm nws tus kheej nplooj ntawv thiab khiav hauv koj tus browser.

Xav tau ntxiv? Mus Pro

Pro: download your Number Base results as CSV & save history, $5 one-time

Tau txais Pro →

Alipay — $5

Los yog qhib txhua lub cuab yeej nrog All-Access Pro — $15 ib zaug.

Tau All-Access — $15 ib zaug

Alipay — $15

Cov nqi raug kho los ntawm lub teb chaws yog li tib lub cuab yeej raug nqi tsawg dua qhov twg cov nyiaj tau los qis dua - koj pom tus nqi rau koj lub tebchaws.

Xav Alipay? Saib tag nrho cov kev xaiv them nyiaj.

Twb tau them? Nkag mus rau Pro

Yuav siv li cas

  1. Type a number and pick its base (or leave auto-detect on).
  2. Press Convert to see the same value in all four bases.
  3. Copy any result you need.

Cov lus nug

What do 0x, 0b and 0o mean?

They are prefixes that say which base a number is written in: 0xFF is hexadecimal, 0b1010 is binary, 0o17 is octal. This tool understands them automatically.

How large can the number be?

Practically unlimited. The conversion uses JavaScript BigInt, so numbers far beyond the usual 53-bit safe-integer limit still convert exactly.

Why is 255 written as FF in hex?

Hex uses 16 digits, so each hex digit holds 4 bits. 255 is 11111111 in binary — two groups of four 1-bits — which is FF in hex.

Ntau Lwm yam cuab yeej cov cuab yeej

← Rov qab mus rau tag nrho cov cuab yeej · Tshawb nrhiav cov lus qhia