What is the differences between vivre and habiter?

The French verbs habiter and vivre both mean to live, but are used in different circumstances. You won't be able to live with yourself if you don't learn how to use them both. :-)

Habiter is the equivalent of to live in, to reside in, to inhabit, used to express where one lives. Habiter is a reguler -er verb and may or may not take a preposition.
J'habite (à) Paris. I live in Paris.
Nous avons habité (dans) une maison. We lived in a house.
Il n'a jamais habité en
la
banlieue He has never lived in the suburbs.
Cette maison n'est pas habitée. This house is unoccupied.

Habiter can also be used figuratively
Une passion incroyable l'habite. An incredible passion lives in (inhabits) him.

Vivre means to live, to be alive, to exist - it expresses how or when one lives. Vivre is an irregular -re verb.
Elle vit dans le luxe. She lives in luxury.
Voltaire a vécu au 18e siècle. Voltaire lived in the 18th century.
Il vit toujours avec sa mère. He still lives with his mother.
Nous vivons des jours heureux ! We're living in happy days!

Vivre can express where one lives.
Je vis à Paris. I live in Paris.

Vivre is also used in some expressions.
l'art de vivre the art of living
être facile/difficile à vivre to be easy/hard to live with
la joie de vivre joy for life
mal vivre qqchose to have a hard time of something
le savoir-vivre savoir faire, know how, good manners
vivre le présent to live for today
vivre sa foi, son art, ses croyances to realize one's faith, art, beliefs
vivre sa vie to live one's (own) life
vivre vieux to live to a ripe old age

The differences between "vivre" and "habiter" lie in the nuances of their meanings in the French language.

1. Vivre: It translates to "to live" in English. It generally refers to the broader concept of an individual's existence, experience, or way of life. It encompasses various aspects of life such as emotions, activities, and personal preferences. "Vivre" can be used to express how someone lives or experiences life in general.

2. Habiter: It translates to "to live" or "to reside" in English. However, it specifically refers to the act of inhabiting or residing in a particular place or location. It focuses on the physical aspect of living in a specific area, such as a house, apartment, or city. "Habiter" is used to discuss where someone lives, or the location itself. It implies a more permanent or regular arrangement of living in a specific place.

To understand the differences in meaning, you can look at the context in which these verbs are used. If the emphasis is on one's way of life, experience, or personal choices, "vivre" is likely more appropriate. On the other hand, if the focus is on geographical location or where someone resides, "habiter" is the better choice.

Remember that language is nuanced, and understanding the subtle differences between words can depend on various factors such as context, usage, and individual interpretations. By considering these factors, you can grasp the distinctions between "vivre" and "habiter."