Decimal to Hex
Convert a decimal number to hexadecimal, e.g. 255 → FF.
- Free
- No sign-up
- Runs in your browser
Your result will appear here.
What does Decimal to Hex do?
Decimal to Hex converts an ordinary number to hexadecimal (base 16), the format used for colours, memory addresses and byte values.
What you can use
A whole decimal number, e.g. 255.
Example
Input
255
Output
ff
How to use Decimal to Hex
- Step 1
Type the number.
- Step 2
Press Convert.
- Step 3
Copy the hex result.
Good to know
- Pad to two digits per byte (0f, not f) when building colour codes.
Your privacy
Everything happens in this browser tab: what you paste is converted by JavaScript on your device and never sent to our server. Closing the tab clears it. Even so, don’t paste live passwords, API keys or customer records into any website.
Related tools
All Popular ToolsFrequently asked questions
Is Decimal to Hex free?
Yes. Decimal to Hex is completely free, with no sign-up, no watermark and no daily limit.
Is the data I paste sent to a server?
No. Conversion runs in JavaScript inside this browser tab and nothing you paste is sent or stored. Even so, avoid pasting live passwords, API keys or private customer data into any website.
Why do I get an error?
Almost always the input isn’t quite valid: a missing comma or quote in JSON, an unclosed tag in XML, or a tab in YAML. The error message shows where parsing stopped — fix that spot, or press “Load example” to compare with input that works.
Does it work on my phone?
Yes. It works in any modern browser on Android, iPhone, tablets and computers — nothing to install.