The nine judges ruled that the right to privacy "is protected as an intrinsic part of Article 21 that protects life and liberty".
The verdict came in response to privacy concerns over a controversial government biometric ID card scheme.
Rights groups are concerned personal data could be misused. The authorities want registration to be compulsory