Conversor de bases numéricas
Converta inteiros entre as bases 2 e 36 com aritmética exata de inteiros de qualquer tamanho.
Entrada
Dica: pressione Ctrl + Enter para executar
Configurações salvas
Por enquanto, a ajuda detalhada abaixo está disponível apenas em inglês.
Sobre esta ferramenta
Programmers move between binary, octal, decimal and hexadecimal all the time: reading permissions, colour codes, bit masks and memory addresses. This converter handles any base from 2 to 36 using arbitrary-size integers, so very long numbers convert exactly without the rounding errors of ordinary floating-point maths.
Digits above 9 use letters, so base 16 uses 0–9 and a–f, and base 36 uses the whole alphabet.
Como usar
- Enter the whole number using digits valid for its base.
- Enter the base it is written in (2 to 36).
- Enter the base you want (2 to 36).
- Run the conversion and copy the result.
Como o cálculo funciona
The input is validated digit by digit against the source base, accumulated as a BigInt, and then written in the target base. Letters are case-insensitive on input and lowercase on output.
integer(base a) → integer(base b)Exemplo prático
A byte of all ones, 11111111 in base 2, converts to ff in base 16 (255 in decimal). A short base-36 code "zz" is 1295 in decimal. Entering 19 as an octal number is rejected because 9 is not an octal digit.
Exemplo de entrada e resultado
255 (10) = ff (16)
Limitações
- Non-negative integers only.
- Bases 2 to 36.
- No two’s-complement or signed binary interpretation.
Última atualização:
Perguntas frequentes
Can I convert negative numbers or fractions?
No. Only non-negative whole numbers are supported.
Why is my octal number rejected?
It contains a digit that does not exist in that base, such as 8 or 9 in base 8.
Should I include 0x or 0b prefixes?
No. Remove prefixes like 0x and 0b before converting.
Solução de problemas
It shows an error.
Check for prefixes (0x), spaces, separators or digits invalid for the base.
I need uppercase hex.
Convert the result with the case converter.
I need a colour in RGB.
Use the HEX to RGB converter.
Privacidade & Uso gratuito
Meus dados são armazenados?
Seus dados ficam nesta aba. Não recebemos seus arquivos, textos colados nem valores de cálculo.
Esta ferramenta é gratuita?
Sim. Não é preciso cadastro nem pagamento.
Veja também
Próximos passos úteis
Formatador e validador de JSON
Valide, formate ou minifique JSON localmente. Dados inválidos nunca são enviados a um servidor.
Desenvolvimento e SEOConversor de CSV para JSON
Converta cabeçalhos e registros CSV em JSON, com suporte a delimitadores entre aspas e quebras de linha.
Desenvolvimento e SEOConversor de JSON para CSV
Converta uma lista plana de objetos em CSV. Textos parecidos com fórmulas recebem um prefixo de proteção para planilhas.
Desenvolvimento e SEO