A chansonnier (Catalan: cançoner, Occitan: cançonièr, Galician and Portuguese: cancioneiro, Italian: canzoniere or canzoniéro, Spanish: cancionero) is a manuscript or printed book which contains a collection of chansons, or polyphonic and monophonic settings of songs, hence literally "song-books"; however, some manuscripts are called chansonniers even though they preserve the text but not the music, for example, the Cancioneiro da Vaticana and Cancioneiro da Biblioteca Nacional, which contain the bulk of Galician-Portuguese lyrics.
The most important chansonniers contain lyrics, poems and songs of the troubadours and trouvères used in the medieval music. Prior to 1420, many song-books contained both sacred and secular music, one exception being those containing the work of Guillaume de Machaut. Around 1420, sacred and secular music was segregated into separate sources, with large choirbooks containing sacred music, and smaller chansonniers for more private use by the privileged. Chansonniers were compiled primarily in France, but also in Italy, Germany and in the Iberian Peninsula.