HEX to RGB Converter

Convert one or many HEX colour codes to RGB values in the format you need.

FreeNo sign-upRuns in your browserMobile-friendly

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

  1. Paste HEX codes, one per line.
  2. Choose the output format.
  3. 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.

Embed this tool on your website

Add the free HEX to RGB Converter to your blog or website. Paste the code into your page’s HTML; the tool runs in your visitors’ browsers and stays up to date automatically. Please keep the credit line below the tool.

Free to use on any website. The tool runs inside an iframe served from viptools.pk; nothing your visitors type is sent to your site or ours. Preview the embedded version.