# Quickly Convert a String to a Number

**URL:** <https://forums.losant.com/t/quickly-convert-a-string-to-a-number/2461>\
**Category:** Losant Tips\
**Tags:** workflow\
**Created:** [December 11, 2019, 1:52am UTC](https://forums.losant.com/t/quickly-convert-a-string-to-a-number/2461 "2019-12-11T01:52:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [December 11, 2019, 1:52am UTC](https://forums.losant.com/t/quickly-convert-a-string-to-a-number/2461/1 "2019-12-11T01:52:47Z")

</div>

Did you know you can quickly convert a [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) to a number on a workflow payload by using a [Mutate Node](https://docs.losant.com/workflows/logic/mutate/), the [add template helper](https://docs.losant.com/workflows/accessing-payload-data/#format-helpers), and treating the output as JSON?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/15cb765c313fac737063c97c359b246277846c86.gif)

We’ll be back next Tuesday with a new tip. Until then, keep exploring! ⛏  
Julia
