Rock Identifier - Free Online Rock ID Tool | Tools
🛠️ Rock Identifier
🪨 Rock Identifier
Recent Identifications
Introducing the Rock Identifier – Your Pocket Geology Assistant
Ever found an interesting stone on a hike and wondered what it was? The Rock Identifier tool lets you describe a rock’s color, texture, hardness, and other clues, then instantly suggests the most likely type. It’s perfect for students, hobbyists, or anyone curious about the geology around them.
How to Use the Tool – Step by Step
- Describe the rock: Type a brief description in the textarea (e.g., “dark, fine‑grained, volcanic”).
- Speak it (optional): Click the 🎤 Speak Description button and dictate your notes for hands‑free entry.
- Identify: Press the Identify Rock button. The result appears below.
- Copy or share: Use the Copy Result button to copy the identification to your clipboard.
- Reset: Click Clear / Reset to start a new query.
- Toggle theme: Switch between Light and Dark modes with the Toggle Dark/Light button.
Key Benefits
- Instant, on‑the‑go rock identification without leaving the page.
- Works on desktop, tablets, and smartphones – fully responsive.
- Dark mode reduces eye strain in low‑light environments.
- No external dependencies – everything runs locally in the browser.
Advanced Features List
- Keyword‑based AI‑lite identification: Matches your description against a curated rock database.
- Voice input: Use the Web Speech API to dictate descriptions.
- Auto‑suggest dropdown: Pre‑filled rock description hints appear as you type.
- Local‑storage history: The last five identifications are saved and displayed.
- Copy‑to‑clipboard button: One‑click copying of results for easy sharing.
- Dark/Light theme toggle: Seamlessly switch visual themes.
- Responsive design: Optimized layout for desktop, tablet (≤600 px), and mobile (≤500 px).
- Input validation & alerts: Prevents empty submissions and notifies of unsupported browsers.
Frequently Asked Questions
- Q: Does the tool work offline?
- A: Yes. All logic runs client‑side, so once the page loads you can use it without an internet connection.
- Q: Can I add my own rock types?
- A: The current version uses a fixed list, but you can edit the
rockDBarray in the source code to add more entries. - Q: Why does the voice button sometimes stay disabled?
- A: Voice input relies on the browser’s SpeechRecognition API, which isn’t supported in all browsers (e.g., Safari). In unsupported browsers the button is disabled with a tooltip explaining the limitation.

Post a Comment