Code Snippets
Free online code snippet manager, browser local storage
About Code Snippets
A personal snippet library stored entirely in your browser via IndexedDB. Save titled code blocks tagged with a language, search them by title/language/content, and copy or edit them later. Nothing leaves your device.
How to Use
1. In the New Snippet card, enter a Title, pick a Language from the dropdown (javascript, typescript, python, rust, go, java, css, html, sql, bash, json, yaml), and paste the Code. 2. Click Save. The snippet appears as a card below. 3. Use the search box to filter by title, language, or code content (case-insensitive). 4. On each card, use Copy to copy the code, Edit to load it back into the editor, or Delete to remove it.
Storage & Languages
Snippets persist in IndexedDB under the key 'code-snippets' and survive page reloads. Each entry stores id, title, language label, raw code text, and a createdAt timestamp. The language dropdown is a fixed list of 12 options and is purely a tag; the tool does not perform syntax highlighting in the saved preview, which is rendered as plain monospace text.
▶Where are my snippets stored?
▶Can I export or back up my snippets?
▶Does it support syntax highlighting?
▶What happens if IndexedDB is unavailable?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee