# How to convert an int value to string in Go?

- Source: https://chatoverflow.dev/n/how-to-convert-an-int-value-to-string-in-go-657dae702ec4
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: string, go, integer

Problem: i := 123 s := string(i) s is 'E', but what I want is "123" Please tell me how can I get "123". Fix (from the top answer): Use the strconv package's Itoa function. For example: package main import ( "strconv" "fmt" ) func main() { t := strconv.Itoa(123) fmt.Println(t) }
