EditSafely

Convert Hex to Arbitrary Base

Convert a hexadecimal to arbitrary base from 2 to 64. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

Options

How to use Convert Hex to Arbitrary Base

  1. 1. Enter the hex numbers. Paste one or more base-16 values, like ff, into the input pane. Multiple whitespace-separated numbers are each converted to the same target base.
  2. 2. Choose the Target base. Set Target base to any radix from 2 to 36. Pick 2 to see raw bits, 8 for octal, 10 for decimal, or something unusual like 7 or 36 for puzzles and compact IDs.
  3. 3. Adjust the Separator and copy. The Separator field controls the delimiter between converted values. Once ff shows as 377 in base 8 or whatever your radix produces, copy the output.

When to use Convert Hex to Arbitrary Base

Convert Hex to Arbitrary Base is the general-purpose radix machine for when the fixed converters do not cover your target. One tool handles hex to base 3, base 12, base 36 or anything between, which is exactly what encoding experiments, homework and compact ID schemes demand.

  • Generating base-36 short codes. Your service stores record IDs as hex but produces user-facing codes in base 36 to keep them short. Convert sample IDs to verify the code generator's output.
  • Working through number theory exercises. A textbook asks for a value in base 7 or base 12. Convert the hex form directly and check your manual long-division work against the tool's answer.
  • Testing radix edge cases in a parser. A library claims to parse any base from 2 to 36. Generate expected strings for awkward radixes like 11 and 27 here and pin them as fixtures.
  • Exploring unusual encodings in CTFs. When a challenge string uses digits and letters beyond f, the payload may be a higher base. Convert your known-plaintext guesses to various bases to identify the encoding.

Examples

Hex to octal (base 8)

Input

ff

Output

377

About the Convert Hex to Arbitrary Base tool

Convert Hex to Arbitrary Base runs as plain JavaScript in your browser tab, with no server behind it. Convert a hexadecimal to arbitrary base from 2 to 64. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's Hex Tools section, 108 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 2 settings, including Target base and Separator, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Is Convert Hex to Arbitrary Base free to use?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.