Convertedor de base numérica

Converte números entre binario, octal, decimal e hexadecimal.

Resultado
Conversión

Os resultados actualízanse mentres escribe.

Acerca desta calculadora

number base converter reads the value in the source base, works out its plain decimal value, and re-expresses that value in the target base. A number base converter reads your value in the source base, works out its plain decimal value, and re-expresses that value in the target base. A number base converter reads your value in the source base, works out its plain decimal value, and re-expresses that value in the target base. A number base converter reads your value in the source base, works out its plain decimal value, and re-expresses that value in the target base.Worked example: the number base converter reads the value in the source base, and re-expresses it in the target base.WorkedWorked example: the number base converter reads the value in the target base, and re-expresses it in the target base.WorkedWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWorked example: the number base converter reads the value in the target baseWork

Preguntas frecuentes

Como podo converter decimal a binario?

Dividir repetidamente por 2 e ler os restos de baixo para riba. Por exemplo, 10 en decimal é 1010 en binario, e 255 é 11.

Para que se emprega o hexadecimal?

Hexadecimal (base 16) empaqueta catro bits binarios nun díxito (0- 9 e logo A- F), polo que é unha forma compacta de escribir bytes. O número decimal 255 é FF en hexadecimal.

Por que o meu número mostra un trazo?

Os díxitos deben ser válidos para a base de orixe, por exemplo só 0 e 1 en binario, ou 0- 9 e A- F en hexadecimal. Un díxito non válido fai que o resultado non estea definido.

Que significan as letras A a F en hexadecimal?

Son díxitos únicos para os valores de 10 a 15: A é 10, B é 11, ata F que é 15. Isto permite que a base 16 axuste os números ata 15 nun lugar antes de ter que levar.

Por que cada díxito hexadecimal equivale a catro díxitos binarios?

Como 16 é igual a 2 á cuarta potencia, cada díxito hexadecimal cobre exactamente catro bits. Polo tanto, o byte 11 agrúpase en 1 1, que é FF. Este conversor de base numérica fai ese agrupamento por vostede.

Pode este conversor manexar números moi grandes?

Funciona con números enteiros e é preciso ata o rango no que se almacenan exactamente os números enteiros (cerca de 9 quadrillóns ou 2⁵³). Máis aló diso, as cadeas binarias ou hexadecimais extremadamente longas poden perder precisión nos seus últimos díxitos.

❤️ Amor Calculator.Free? Compárteo

𝕏  X Facebook Reddit
API — empregar esta calculadora desde o código

Chama esta calculadora como un punto final JSON libre - non se require ningunha chave. Envie os valores dos campos de baixo como parámetros de consulta ou JSON. Ler a documentación completa da API →

Punto final

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);

Os resultados son estimacións só para orientación xeral, non para consellos financeiros, médicos ou fiscais.