A qibla compass or qiblih compass (sometimes also called qibla/qiblih indicator) is a modified compass designed to indicate the direction of prayer. In Islam, this direction is the qibla, pointing to Mecca and specifically to the Ka'abah; In the Bahá'í Faith, this direction is to the Qiblih, pointing to the Shrine of Bahá'u'lláh which is in Akká in present-day Israel.
While the compass, like any other compass, points north, the direction of prayer is indicated by marks on the perimeter of the dial, corresponding to different cities, or by a second pointer set by the user according to their own location. Al-Biruni wrote his book (Kitab Tahdid Al- Al-Amakin, or the demarcation of the coordinates of cities) to determine the qibla. To face in the proper direction, one has to know with some precision both the longitude and latitude of Mecca, the city toward which one must face. Once that is determined, the values are applied to a spherical triangle, and the angle from the local meridian to the required direction of Mecca can be determined. The problem admits of more than one method of solution, and Al-Biruni did his share in supplying the various methods in this book. Qibla indicators were made after al-Kindi in various forms. The indicator usually comprises a round brass box with a hinged lid and an inset magnetic compass. A list of important Islamic places with their longitudes, latitudes, is inscribed in Arabic on all sides of the box. The compass has a blued steel needle with an open circle to indicate North. It is surmounted by a brass pyramidal pivot and a glass plate covers all. A brass ring over the rim of the compass carries a degree circle numbered in 'abjad' numerals and the cardinal points are marked. The folding triangular gnomon is supported by a decorative open-work motif. The lid of the box is secured by a hook fastener. The instrument serves the user to determine the correct 'qibla' - the direction to which Muslims turn in prayer to face the Ka'ba in Mecca. Ornate qibla compasses date back at least to the 18th century. Some modern versions use digital readout instead of a magnetic pointer.
Some qibla compasses also include a tally counter, used to count the repetition of various du'a said after prayer.