HEX to RGB Converter
Convert one or many HEX colour codes to RGB values in the format you need.
Loading tool…
Need help with this tool or found a problem? WhatsApp support Email
What does the HEX to RGB Converter do?
Paste HEX codes one per line — with or without “#”, in 3-digit shorthand (#0F0), 6-digit or 8-digit with alpha — and get RGB output as CSS rgb()/rgba(), plain “R, G, B” numbers, percentages or 0–1 floats for shaders and game engines.
Each pair of hex digits is a number from 0 to 255: in #FF5733, FF = 255 red, 57 = 87 green and 33 = 51 blue.
How to use the HEX to RGB Converter
- Paste HEX codes, one per line.
- Choose the output format.
- Copy the RGB results.
Examples
Single
#FF5733 → rgb(255, 87, 51).
With alpha
#4F46E580 → rgba(79, 70, 229, 0.502).
Common use cases
- Converting design tokens
- Using brand colours in code that needs RGB
- Shader and game development
Features and benefits
- Private by design — your data is processed on your device and never uploaded.
- Free with no account, no watermark and no usage limits.
- Works on phones, tablets and desktops in any modern browser.
Limitations to know
- Invalid codes are marked so you can fix them.
Frequently asked questions
How do I convert HEX to RGB by hand?
Split into pairs and convert each from base 16: FF = 15×16 + 15 = 255.
What is 3-digit HEX?
Shorthand where each digit is doubled: #0F0 = #00FF00.
Can I convert many at once?
Yes, one per line.
Related tools
All developer toolsRGB to HEX Converter
Convert RGB values to HEX colour codes.
Color Converter
Convert colours between HEX, RGB, HSL, HSV and CMYK.
RGB Color Converter
Mix colours with RGB sliders and convert to HEX, HSL and CMYK.
Converter ToolsColor Picker
Pick a colour and get shades, tints and contrast ratios.
Utility ToolsImage Color Picker
Pick colours from any image and get HEX, RGB and HSL values.
Image ToolsUnix Timestamp Converter
Convert Unix timestamps to dates and dates to timestamps.