Convert octal to hex (base 8 → base 16)
Use this converter when you have octal integers (base 8) and need the hexadecimal representation (base 16).
This page is a focused Octal → Hex variant built for speed:
- Batch mode is enabled by default (one value per line)
- HEX output is UPPERCASE by default (
A–F) - Controls are intentionally hidden to keep this variant fast and consistent
Need decimal/binary too, swapping, prefixes, or formatting options? Open the full Number Base Converter.
How to use it
- Paste your octal values into the input (left).
- Use one number per line.
- Copy the hex results from the output (right).
Signed values are supported:
-52→-2A+377→FF
Input rules (octal)
Allowed digits
Octal input may contain only:
- digits
0–7 - an optional leading
+or-
Examples:
0710755-52
Optional 0o prefix
You may paste values like:
0o755-0o52
Separators are ignored
Spaces and underscores are ignored, so these are valid:
7_550o7 55
Output format (hex)
- Output uses digits
0–9and lettersA–F - Negative values keep a leading
- - No
0xprefix by default
Examples:
10→811→952→2A377→FF2000→400-52→-2A
Quick intuition (binary bridge)
Octal and hex both map cleanly to binary:
- Octal digit = 3 bits
- Hex digit = 4 bits
A common workflow is octal → binary → hex, but you don’t need to do it manually — this converter handles it instantly.
Batch example (one per line)
Input (octal):
10
52
377
2000
-52
0o755
8
Output (hex):
8
2A
FF
400
-2A
1ED
!ERROR: Octal input may contain only digits 0–7
One invalid line won’t break the rest.
Common use cases
Permissions and masks
You may see values in octal (permissions, legacy systems) but need to compare them with tools/logs that display hex.
Debugging low-level values
Hex is common in debugging tools, while octal pops up in OS and permissions contexts. Converting between them helps keep everything consistent.
Learning number systems
Octal → hex is a nice exercise in understanding how different bases relate through binary.
Troubleshooting
“Octal input may contain only digits 0–7”
A line includes an invalid digit (like 8 or 9).
Remove invalid characters, or switch bases in the full tool if your input isn’t actually octal.
“I need a 0x prefix / lowercase output”
This focused variant keeps output consistent (uppercase, no prefix).
Use the full Number Base Converter if you want prefixes like 0x or lowercase hex output.
Notes
- This is number base conversion for integers, not text/byte encoding.
- Everything runs locally in your browser — nothing is uploaded.