# Using a string as hex not as string

**URL:** https://discourse.nodered.org/t/using-a-string-as-hex-not-as-string/28974
**Category:** General
**Created:** [25 June 2020 14:54 UTC](https://discourse.nodered.org/t/using-a-string-as-hex-not-as-string/28974 "2020-06-25T14:54:57Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [25 June 2020 15:33 UTC](https://discourse.nodered.org/t/using-a-string-as-hex-not-as-string/28974/2 "2020-06-25T15:33:46Z")

</div>

See [this](https://discourse.nodered.org/t/convert-hex-string-to-float/28893/20)...

Essentially - you can use a function node

e.g.

```auto
msg.payload = Buffer.from("HEX_STRING_HERE","hex").toString()
return msg;

```

Some proof...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/5/0583d70d936839f39424c57817271b60f56c362e.png)

---

_[View the full topic](https://discourse.nodered.org/t/using-a-string-as-hex-not-as-string/28974)._
