Here's a breakdown:
"Whilst"
* Formal: Used in more formal writing and speech, such as academic papers, legal documents, and formal speeches.
* British English: Primarily used in British English, although it can sometimes be found in American English.
"While"
* Informal: Used in everyday conversation and informal writing.
* Both British and American English: Widely used in both varieties of English.
Example:
* Formal: "Whilst I was working on the project, I noticed a discrepancy in the data."
* Informal: "While I was working on the project, I noticed a discrepancy in the data."
In summary:
Use "while" in most situations. Use "whilst" if you want to sound more formal or if you are writing in British English.