-
Notifications
You must be signed in to change notification settings - Fork 0
The LocalStorage Migrator Guide
Jorge Castro edited this page May 12, 2026
·
1 revision
This method uses Base64 encoding to package your data into a single, executable command. This prevents the browser from getting confused by quotes, backslashes, or special characters.
- Open the Web Console (
F12orCmd + Option + J) on the website you want to export from. - Paste the following command and hit Enter:
copy(`const data = JSON.parse(atob("${btoa(JSON.stringify(localStorage))}")); Object.keys(data).forEach((key) => { localStorage.setItem(key, data[key]); });`);
What this does: It takes your local storage, turns it into a Base64 string, and wraps it in a "ready-to-run" script that is automatically copied to your clipboard.
- Open the Web Console on your destination website.
- Paste (Ctrl+V / Cmd+V) the contents of your clipboard and hit Enter.
- Refresh the page to see your imported data in action.
⚠️ Overwrite Warning: This script will overwrite any existing keys in the destinationlocalStorageif they share the same name.
- Sync-Obsidian-with-GitHub-on-iOS
- Obsidian-community-plugins
- Optimizing-Novel-Word-Count-Plugin-for-Git-Users
- What is TypeScript, and why you should use it
- Quick setup
- Inference and type annotations
- Fundamental Types
- Object Types
- Union Types
- Type Aliases and Interfaces
- Type Assertions
- Literal Types
- null and undefined
- Narrowing
- Creating Types from Types
- Common Built‐in and Utility Types
- tsc CLI ‐ (The Compiler)
- Avoid using Object or {}
- Ignoring TypeScript errors
- TypeScript resources