While many slang phrases are idioms, not all idioms are slang. Slang is associated with informality, whereas idioms are phrases that are not meant to be interpreted literally.