A synonym (a word which comes from the Greek literally meaning "plus name") is a word with the same - or virtually the same - meaning as another word. The words may be substituted for each other depending on the context; for example, the verbs 'to live' and 'to dwell'. The choice of one synonym rather than another depends on the context, and often is a matter of connotation and register rather than denotation. It is at the heart of stylistic free choice.
Words that can be interchanged can be described by the related adjective synonymous. The use of the word synonymous is often figurative in English. For example, people can often be heard to state that a particular brand name is "synonymous with quality" meaning (figuratively) that the brand's products represent all that can be desired, rather than its literal meaning: we cannot say that "The paper was of good
Coca-Cola" when we mean "The paper was of good quality"
The opposite of synonyms are antonyms - words that have the opposite or nearly the opposite meanings. An example of these: hot is the antonym of cold.