# One-hot encoding > Representing categorical data as a vector in which:[^1] Representing [categorical data](https://wiki.g15e.com/pages/Categorical%20data.txt) as a vector in which:[^1] - One element is set to 1. - All other elements are set to 0. One-hot encoding is commonly used to represent strings or identifiers that have a finite set of possible values..[^1] ## Footnotes [^1]: https://developers.google.com/machine-learning/glossary#one-hot_encoding