Text Case Conversion in Go โ strings Package Guide
Published 2026-03-04 ยท convertcase.in
Go's strings package provides functions for case conversion. Here's how to use them with practical examples.
Try it now โ free instant conversion
No signup ยท No limits ยท Works on all devices
1Go Case Functions
strings.ToLower("HELLO") โ "hello"
strings.ToUpper("hello") โ "HELLO"
strings.Title("hello world") โ "Hello World" (deprecated in Go 1.18+)2Recommended: golang.org/x/text
The golang.org/x/text/cases package provides locale-aware title casing:
cases.Title(language.English).String("hello world")Frequently Asked Questions
Is strings.Title deprecated in Go?
Yes โ strings.Title was deprecated in Go 1.18. Use golang.org/x/text/cases instead.