{"id":5132,"date":"2026-06-18T13:48:55","date_gmt":"2026-06-18T13:48:55","guid":{"rendered":"https:\/\/rimanagency.com\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\/"},"modified":"2026-06-18T13:48:55","modified_gmt":"2026-06-18T13:48:55","slug":"hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal","status":"publish","type":"page","link":"https:\/\/rimanagency.com\/fr\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\/","title":{"rendered":"Convertisseur hexad\u00e9cimal \u2014 Texte \u2194 Hexad\u00e9cimal, Couleur hexad\u00e9cimale, Hexad\u00e9cimal \u2192 D\u00e9cimal"},"content":{"rendered":"<style>.rt-h{background:linear-gradient(135deg,#f1f5e8,#e8efdb);border-radius:14px;padding:32px;margin:0 0 24px;text-align:center}.rt-h h1{margin:0 0 10px;font-size:28px;color:#4a6320}.rt-g{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 24px}.rt-f,.rt-o{background:#fff;border:1px solid #e0e6d8;border-radius:10px;padding:22px}.rt-f h3,.rt-o h3{margin:0 0 14px;color:#4a6320;font-size:18px}.rt-f label{display:block;font-size:13px;color:#516048;font-weight:600;margin:10px 0 6px}.rt-f input,.rt-f select,.rt-f textarea{width:100%;padding:9px;border:1px solid #d4dac6;border-radius:6px;font-size:14px;box-sizing:border-box;font-family:inherit}.rt-btn{background:#719430;color:#fff;border:none;padding:11px 20px;border-radius:6px;font-weight:700;cursor:pointer;width:100%;margin-top:14px;font-size:15px}.rt-btn:hover{background:#4a6320}.rt-cta{background:linear-gradient(135deg,#719430,#4a6320);color:#fff;border-radius:14px;padding:32px;text-align:center;margin:30px 0}.rt-cta h3{margin:0 0 6px;color:#fff}.rt-cta a{background:#fff;color:#4a6320;padding:12px 28px;border-radius:6px;font-weight:700;text-decoration:none;display:inline-block;margin-top:14px}@media(max-width:768px){.rt-g{grid-template-columns:1fr}}<\/style>\n<div class=\"rt-h\">\n<h1>Hex Converter<\/h1>\n<p>Convert any text to hexadecimal \u2014 or decode hex back to text. Plus separate modes for hex \u2194 decimal and CSS hex color \u2192 RGB. Useful for debugging, encoding inspection, embedded systems, and design work.<\/p>\n<\/div>\n<div class=\"rt-g\">\n<div class=\"rt-f\">\n<h3>Input<\/h3>\n<p><label>Text, hex, or number<\/label><textarea id=\"hx-in\" rows=\"5\" placeholder=\"Hello\"><\/textarea><label>Mode<\/label><select id=\"hx-mode\"><option value=\"textToHex\" selected>Text \u2192 Hex<\/option><option value=\"hexToText\">Hex \u2192 Text<\/option><option value=\"decToHex\">Decimal \u2192 Hex<\/option><option value=\"hexToDec\">Hex \u2192 Decimal<\/option><option value=\"hexToRgb\">CSS Hex Color \u2192 RGB<\/option><\/select><\/div>\n<div class=\"rt-o\">\n<h3>Output<\/h3>\n<p><textarea id=\"hx-out\" rows=\"8\" readonly style=\"width:100%;padding:10px;border:1px solid #d4dac6;border-radius:6px;font-size:13px;box-sizing:border-box;font-family:Consolas,monospace;background:#fafafa\">Output appears here<\/textarea><button class=\"rt-btn\" style=\"background:#516048;margin-top:10px\" onclick=\"copyhexconv()\">Copy to Clipboard<\/button><\/div>\n<\/div>\n<p><script>function cHx(){var t=document.getElementById(\"hx-in\").value;var m=document.getElementById(\"hx-mode\").value;var out=\"\";try{if(m===\"textToHex\"){var enc=new TextEncoder().encode(t);out=Array.from(enc).map(function(b){return b.toString(16).padStart(2,\"0\")}).join(\" \")}else if(m===\"hexToText\"){var clean=t.replace(\/[^0-9a-fA-F]\/g,\"\");var bytes=[];for(var i=0;i<clean.length;i+=2)bytes.push(parseInt(clean.substring(i,i+2),16));out=new TextDecoder().decode(new Uint8Array(bytes))}else if(m===\"decToHex\")out=\"0x\"+parseInt(t,10).toString(16).toUpperCase();else if(m===\"hexToDec\")out=parseInt(t.replace(\/^0x\/i,\"\"),16).toString();else if(m===\"hexToRgb\"){var h=t.trim().replace(\/^#\/,\"\");if(h.length===3)h=h.split(\"\").map(function(c){return c+c}).join(\"\");if(h.length!==6){out=\"Enter a 3 or 6 digit hex color (e.g. #719430 or #fff)\";document.getElementById(\"hx-out\").value=out;return}var r=parseInt(h.substring(0,2),16),g=parseInt(h.substring(2,4),16),b=parseInt(h.substring(4,6),16);out=\"rgb(\"+r+\", \"+g+\", \"+b+\")\\nrgba(\"+r+\", \"+g+\", \"+b+\", 1)\\nHSL: \"+(function(){var rN=r\/255,gN=g\/255,bN=b\/255,max=Math.max(rN,gN,bN),min=Math.min(rN,gN,bN),h,s,l=(max+min)\/2;if(max===min){h=s=0}else{var d=max-min;s=l>0.5?d\/(2-max-min):d\/(max+min);if(max===rN)h=(gN-bN)\/d+(gN<bN?6:0);else if(max===gN)h=(bN-rN)\/d+2;else h=(rN-gN)\/d+4;h*=60}return\"hsl(\"+h.toFixed(0)+\", \"+(s*100).toFixed(0)+\"%, \"+(l*100).toFixed(0)+\"%)\"})()}}catch(e){out=\"Error: \"+e.message}document.getElementById(\"hx-out\").value=out}[\"hx-in\",\"hx-mode\"].forEach(function(id){document.getElementById(id).addEventListener(\"input\",cHx);document.getElementById(id).addEventListener(\"change\",cHx)});cHx();<\/script><script>function copyhexconv(){var ta=document.getElementById(\"hx-out\");ta.select();navigator.clipboard.writeText(ta.value);event.target.textContent=\"\u2713 Copied!\";setTimeout(function(){event.target.textContent=\"Copy to Clipboard\"},1500)}<\/script><\/p>\n<h2>How to use the Hex Converter<\/h2>\n<p>Paste text, hex, decimal, or a CSS hex color. Pick a mode. Output updates in real time. Hex output uses lowercase with spaces between bytes for readability. Hex input is forgiving \u2014 spaces, 0x prefixes, and # marks all get stripped.<\/p>\n<h2>Why this tool matters<\/h2>\n<p>Hexadecimal is the universal compact form of binary data. Memory addresses, color codes, network packet captures, cryptographic outputs, hash digests, and binary file inspection all use hex. Conversion between hex, decimal, and text is the most common low-level debugging task.<\/p>\n<h2>Common use cases<\/h2>\n<ul>\n<li>Inspecting bytes in network captures or hex dumps<\/li>\n<li>Converting RGB color values to CSS hex codes<\/li>\n<li>Decoding hex-encoded API responses<\/li>\n<li>Calculating memory offsets and addresses<\/li>\n<li>Debugging embedded systems and IoT integrations<\/li>\n<li>Translating crypto hash outputs to readable format<\/li>\n<\/ul>\n<h2>Hex vs. Base64 vs. Binary<\/h2>\n<p>Hex is compact and human-readable (each byte is 2 characters). Base64 is denser (each 3 bytes becomes 4 characters \u2014 33% overhead vs hex\\u2019s 100%). Binary is the most expressive but unreadable. Use hex for short identifiers and debugging; use Base64 for long payloads; use binary only for low-level system work.<\/p>\n<h2>Frequently Asked Questions<\/h2>\n<p><strong>Why do I see \"0x\" prefixes sometimes?<\/strong><br \/>\"0x\" is the conventional prefix for hex numbers in C-family languages. Our decimal-to-hex output uses it. CSS color hex uses \"#\" instead. Both mean the same thing \u2014 what follows is in base 16.<\/p>\n<p><strong>What\\u2019s the difference between hex and Base16?<\/strong><br \/>They are the same thing \u2014 \"hexadecimal\" and \"Base16\" both refer to base-16 encoding. RFC 4648 standardizes the format as \"Base16\".<\/p>\n<p><strong>Can I convert hex to ASCII art?<\/strong><br \/>Hex is a text encoding of bytes. If those bytes happen to be visible ASCII characters, the Hex \u2192 Text mode will decode them. For ASCII art generation, use our ASCII Art Generator tool instead.<\/p>\n<p><strong>Why is the hex output always lowercase?<\/strong><br \/>Lowercase is the modern convention (RFC 4648). Uppercase is acceptable but visually noisier. If you need uppercase output, transform the result after copying.<\/p>\n<div class=\"rt-cta\">\n<h3>Building marketing technology with low-level integrations or analytics pipelines?<\/h3>\n<p style=\"margin:0;opacity:.95\">Riman Agency builds martech and integration architectures.<\/p>\n<p><a href=\"\/contact\/\">Talk to MarTech<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hex Converter Convert any text to hexadecimal \u2014 or decode hex back to text. Plus separate modes for hex \u2194 decimal and CSS hex color \u2192 RGB. Useful for debugging, encoding inspection, embedded systems, and design work. Input Text, hex, or numberModeText \u2192 HexHex \u2192 TextDecimal \u2192 HexHex \u2192 DecimalCSS Hex Color \u2192 RGB Output [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5132","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Hex Converter \u2014 Text \u2194 Hexadecimal, Hex Color, Hex \u2192 Decimal - Riman Agency<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rimanagency.com\/fr\/hex-converter-text-\u2194-hexadecimal-hex-color-hex-\u2192-decimal\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hex Converter \u2014 Text \u2194 Hexadecimal, Hex Color, Hex \u2192 Decimal - Riman Agency\" \/>\n<meta property=\"og:description\" content=\"Hex Converter Convert any text to hexadecimal \u2014 or decode hex back to text. Plus separate modes for hex \u2194 decimal and CSS hex color \u2192 RGB. Useful for debugging, encoding inspection, embedded systems, and design work. Input Text, hex, or numberModeText \u2192 HexHex \u2192 TextDecimal \u2192 HexHex \u2192 DecimalCSS Hex Color \u2192 RGB Output [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rimanagency.com\/fr\/hex-converter-text-\u2194-hexadecimal-hex-color-hex-\u2192-decimal\/\" \/>\n<meta property=\"og:site_name\" content=\"Riman Agency\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\\\/\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\\\/\",\"name\":\"Hex Converter \u2014 Text \u2194 Hexadecimal, Hex Color, Hex \u2192 Decimal - Riman Agency\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#website\"},\"datePublished\":\"2026-06-18T13:48:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\\\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rimanagency.com\\\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rimanagency.com\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hex Converter \u2014 Text \u2194 Hexadecimal, Hex Color, Hex \u2192 Decimal\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#website\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/\",\"name\":\"Riman Agency\",\"description\":\"A Full Service Digital Marketing Agency\",\"publisher\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rimanagency.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-CA\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#organization\",\"name\":\"Riman Agency\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/RIMANagency-all-logos-1-2.png\",\"contentUrl\":\"https:\\\/\\\/rimanagency.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/RIMANagency-all-logos-1-2.png\",\"width\":694,\"height\":211,\"caption\":\"Riman Agency\"},\"image\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hex Converter \u2014 Text \u2194 Hexadecimal, Hex Color, Hex \u2192 Decimal - Riman Agency","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rimanagency.com\/fr\/hex-converter-text-\u2194-hexadecimal-hex-color-hex-\u2192-decimal\/","og_locale":"fr_CA","og_type":"article","og_title":"Hex Converter \u2014 Text \u2194 Hexadecimal, Hex Color, Hex \u2192 Decimal - Riman Agency","og_description":"Hex Converter Convert any text to hexadecimal \u2014 or decode hex back to text. Plus separate modes for hex \u2194 decimal and CSS hex color \u2192 RGB. Useful for debugging, encoding inspection, embedded systems, and design work. Input Text, hex, or numberModeText \u2192 HexHex \u2192 TextDecimal \u2192 HexHex \u2192 DecimalCSS Hex Color \u2192 RGB Output [&hellip;]","og_url":"https:\/\/rimanagency.com\/fr\/hex-converter-text-\u2194-hexadecimal-hex-color-hex-\u2192-decimal\/","og_site_name":"Riman Agency","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rimanagency.com\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\/","url":"https:\/\/rimanagency.com\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\/","name":"Hex Converter \u2014 Text \u2194 Hexadecimal, Hex Color, Hex \u2192 Decimal - Riman Agency","isPartOf":{"@id":"https:\/\/rimanagency.com\/#website"},"datePublished":"2026-06-18T13:48:55+00:00","breadcrumb":{"@id":"https:\/\/rimanagency.com\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rimanagency.com\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rimanagency.com\/hex-converter-text-%e2%86%94-hexadecimal-hex-color-hex-%e2%86%92-decimal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rimanagency.com\/home\/"},{"@type":"ListItem","position":2,"name":"Hex Converter \u2014 Text \u2194 Hexadecimal, Hex Color, Hex \u2192 Decimal"}]},{"@type":"WebSite","@id":"https:\/\/rimanagency.com\/#website","url":"https:\/\/rimanagency.com\/","name":"Agence Riman","description":"Une agence de marketing num\u00e9rique \u00e0 service complet","publisher":{"@id":"https:\/\/rimanagency.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rimanagency.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-CA"},{"@type":"Organization","@id":"https:\/\/rimanagency.com\/#organization","name":"Agence Riman","url":"https:\/\/rimanagency.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/rimanagency.com\/#\/schema\/logo\/image\/","url":"https:\/\/rimanagency.com\/wp-content\/uploads\/2022\/02\/RIMANagency-all-logos-1-2.png","contentUrl":"https:\/\/rimanagency.com\/wp-content\/uploads\/2022\/02\/RIMANagency-all-logos-1-2.png","width":694,"height":211,"caption":"Riman Agency"},"image":{"@id":"https:\/\/rimanagency.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/pages\/5132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/comments?post=5132"}],"version-history":[{"count":0,"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/pages\/5132\/revisions"}],"wp:attachment":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/media?parent=5132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}