Text
Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
How to use it
- Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type Base Converter and press Return.
- Paste or type your text into Input.
- Adjust the Options on the right if you need to. The defaults are listed below.
- Press Convert, or ⌘↵.
- Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.
Options
| Option | Values | Default |
|---|---|---|
| Input baseBase of input number | Auto-detect, Binary (2), Octal (8), Decimal (10), Hexadecimal (16), Custom | Auto-detect |
| Custom baseCustom base (2-36) | 2–36 | 10 |
| Show prefixesShow 0b, 0o, 0x prefixes | On or off | On |
| Group digitsAdd separators for readability | On or off | On |
| Uppercase hexUse uppercase letters for hex | On or off | On |
Example
Real output from Devly, with the default options.
Input
255
Decimal (10)
255
Binary (2)
0b1111 1111
Octal (8)
0o377
Hexadecimal (16)
0xFF
Bits required
8
Detected input base
Decimal (auto)
From Terminal
With the free command-line tool installed:
Terminal
devly numberbase "255" # or pipe text in pbpaste | devly numberbase
Quick Switch also finds it by: number, base, binary, hex, hexadecimal, octal, decimal, radix.
More Text tools
String CaseConvert text between camelCase, snake_case, kebab-case, and moreRegex TesterTest and debug regular expressions with match highlightingRegex LibraryBrowse and copy common regex patternsString DiffCompare two strings and show differencesLine SorterSort, shuffle, dedupe, and manipulate text linesText StatisticsAnalyze text for word count, character frequency, and readability