{"category":"calc","endpoint":"https://setget.net/v1/tools/base-convert","examples":[{"input":{"from_base":16,"group":4,"to_base":2,"value":"ff"},"output":{"decimal":"255","exact":true,"from_base":16,"text":"1111 1111","to_base":2}},{"input":{"prefix":true,"to_base":16,"value":"-255"},"output":{"decimal":"-255","exact":true,"from_base":10,"text":"-0xff","to_base":16},"title":"Decimal to hex"},{"input":{"precision":8,"to_base":2,"value":"0.1"},"output":{"decimal":"0.1","exact":false,"from_base":10,"text":"0.00011001","to_base":2},"title":"A fraction that never ends in binary"}],"input_schema":{"additionalProperties":false,"properties":{"from_base":{"description":"Base the number is written in. Taken from the prefix, or 10, when left empty.","examples":[16],"maximum":36,"minimum":2,"type":"integer"},"group":{"default":0,"description":"Put a space between every this many digits, counted from the right. 0 turns it off.","maximum":16,"minimum":0,"type":"integer"},"precision":{"default":20,"description":"Most digits to give after the point for fractions.","maximum":100,"minimum":0,"type":"integer"},"prefix":{"default":false,"description":"Add 0x, 0b or 0o to the result when the target base is 16, 2 or 8.","type":"boolean"},"to_base":{"description":"Base to convert to.","examples":[2],"maximum":36,"minimum":2,"type":"integer"},"uppercase":{"default":false,"description":"Write letter digits in capitals.","type":"boolean"},"value":{"description":"The number to convert. A 0x, 0b or 0o prefix is understood.","examples":["ff"],"maxLength":200,"type":"string"}},"required":["value","to_base"],"type":"object"},"keywords":["base converter","binary to decimal","hex to decimal","decimal to binary","decimal to hex","octal converter","hex to binary","radix converter","base 36"],"related":["number-format","roman-numerals","math-eval"],"slug":"base-convert","summary":"Convert numbers between any bases from 2 to 36, such as binary, octal, decimal and hexadecimal.","tier":"inline","title":"Number base converter","url":"https://setget.net/tools/base-convert"}
