# Importing from colornote

**URL:** <https://discourse.joplinapp.org/t/importing-from-colornote/13839>\
**Category:** Apps\
**Created:** [12 January 2021 18:48 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839 "2021-01-12T18:48:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [12 January 2021 18:48 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/1 "2021-01-12T18:48:00Z")

</div>

Hey guys,

I recently switched to Joplin after using [Colornote](https://play.google.com/store/apps/details?id=com.socialnmobile.dictapps.notepad.color.note) for quite a while. Due to Colornote's lack of export features, the migration process was a pain. Additionally, I wanted to keep the creation and modification dates of my notes intact. So I ended up writing a script that takes care of all of that. Here it is, in case anybody ever wants to do something similar:

> **[ratchek/colornote\_to\_joplin](https://github.com/ratchek/colornote_to_joplin)**
>
> This is a script that will import notes from your Colornotes database to Joplin

P.S. I'm loving the app. I tried it a few years back but never switched over. It's really matured since that time. Kudos to the devs!

---

<div class="post-metadata">

**Author:** ![ajay](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ajay/32/6551_2.png) [@ajay](https://discourse.joplinapp.org/u/ajay)\
**Post date:** [12 January 2021 20:43 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/2 "2021-01-12T20:43:56Z")

</div>

Are you talking about colornotes (with an s at the end) for Android, or some other app ?

---

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [13 January 2021 06:15 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/3 "2021-01-13T06:15:28Z")

</div>

Yes! Thank you for the correction. I've apparently been pronouncing it wrong in my head all these years 😃 . I've edited my post to fix that. Now gotta go fix all the other places I've been mistyping it.

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [13 January 2021 12:35 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/4 "2021-01-13T12:35:22Z")

</div>

That name is quite confusing, there's indeed a "ColorNote", and a "ColorNotes" on Google Play. So yours is the one with an "s" then? (although your post title is still without "s") Maybe you should link to the relevant app, so users know for sure which one you support.

---

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [16 January 2021 17:55 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/5 "2021-01-16T17:55:45Z")

</div>

Oh wow, I didn't know there were two apps that are named so similarly. Thanks for the link idea, I'll definitely do that. It should mitigate any confusion.  
Turns out it was "Colornote" all along and when ajay suggested that the name is actually "Colornotes" it just didn't occur to me that there can be another app so similarly named.  
--Edit--  
I can't seem to edit my original post. Could somebody please paste the link in there, and change all the "colornotes" to "colornote"? (Including the one in the url to the github page. I'll go back and change it so it matches up again.) Here's the link:

> <https://play.google.com/store/apps/details?id=com.socialnmobile.dictapps.notepad.color.note>
>
> ColorNote® is a simple and awesome notepad app. It gives you a quick and simple notepad editing experience when you write notes, memos, e-mails, messages, shopping lists and to-do lists. Taking notes with ColorNote® Notepad is easier than any other notepad or memo pad app.
> 
> \* Notice \*
> \- If you cannot find the widget, then please read the FAQ below.
> \- When you're finished using the notepad, an automatic save command preserves your individual note.
> 
> \* Product Description \*
> ColorNote® features two ...

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [16 January 2021 18:07 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/6 "2021-01-16T18:07:58Z")

</div>

> [@ratchek](#):
>
> Could somebody please paste the link in there, and change all the "colornotes" to "colornote"? (Including the one in the url to the github page.

I've changed everything but the gh link, since the repo still uses the `s`.

---

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [16 January 2021 18:10 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/7 "2021-01-16T18:10:07Z")

</div>

I just changed the repo. Could you change the link too?

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [16 January 2021 18:13 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/8 "2021-01-16T18:13:38Z")

</div>

Done. Now you still have to change the README.md and the script name in the repo.... 😉

---

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [16 January 2021 18:26 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/9 "2021-01-16T18:26:35Z")

</div>

Thank you! And thanks for reminding me about those changes! I think it's all good again. 😁

---

<div class="post-metadata">

**Author:** ![ehisod](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@ehisod](https://discourse.joplinapp.org/u/ehisod)\
**Post date:** [14 December 2021 15:31 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/10 "2021-12-14T15:31:56Z")

</div>

Hi,

I can't seem to run this script to convert my colornote.db to joplin. I have installed all the necessary apps copied the colornote\_to\_joplin.py and colonornote.db files to the python install directory. When I try to run the .py file in python I get stuck. I get the error in the screenshot below.

 ![Joplin Capture](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/f/f40884e7eee0a1fa63a955b69b88a29ac322fb1b.jpeg)

---

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [14 December 2021 21:56 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/11 "2021-12-14T21:56:25Z")

</div>

Sorry. This code is from the good old times where I didn't really bother/know about error handling, so it's a bit hard to diagnose. My best guess is that the script can't communicate with the joplin api properly and that's messing up the json library. If it's super urgent, you can try and paste `print(r.json())` between lines 32 and 33 in `colornote_to_joplin.py` and send me the output after you run the code again. (Make sure that the line you just pasted lines up with the two surrounding lines. i.e. it's prepended with 4 spaces).  
If it's not super urgent, I'll try and update the code with proper exception handling at some point which would make the problem easier to diagnose.

Also, this code was tested only on Linux. So no guarantees it'll ever work on Windows. Although it really should. I'm not using any outlandish Python libraries. If anyone has insight as to how the 'requests' and 'json' libraries differ between Windows and Linux, maybe they'd be able to help.

---

<div class="post-metadata">

**Author:** ![ehisod](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@ehisod](https://discourse.joplinapp.org/u/ehisod)\
**Post date:** [15 December 2021 08:23 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/12 "2021-12-15T08:23:17Z")

</div>

Thanks for responding. Am on windows 10, am not a coder. I however edited the colornote\_to\_joplin file and ran it as directed and attached is the screenshot of what I got.

 ![Joplin Capture after py edit](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/a/a1528488b13805b94d677208708702640d09da40.jpeg)

Also this is the colornote\_to\_joplin.py file am running just in case you need to look at it.  
[colornote\_to\_joplin.py](https://discourse.joplinapp.org/uploads/short-url/wJnDRbJ0Q7PenhLqldBnYp7yh0q.py) (2.5 KB)

---

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [15 December 2021 21:24 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/13 "2021-12-15T21:24:12Z")

</div>

Hmmm. Ok. Could you change the `print(r.json())` that you just pasted to a print(r), run it again, and paste the output?

Also another thing that would help is if you pasted this:  
`http://127.0.0.1:41184/folders?token=ADD-YOUR-TOKEN-HERE`  
into your web-browser url bar and posted a screenshot of that. (Just make sure to replace "ADD-YOUR-TOKEN-HERE" with your actual token)

---

<div class="post-metadata">

**Author:** ![ehisod](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@ehisod](https://discourse.joplinapp.org/u/ehisod)\
**Post date:** [16 December 2021 09:34 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/14 "2021-12-16T09:34:18Z")

</div>

Attached below are the two screenshots as requested.  
The browser page screenshot:

 ![Joplin BROWSER Capture](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/4/44e549cbad3554230635d706e6c3c0a776ec5a2a.jpeg)

---

<div class="post-metadata">

**Author:** ![ehisod](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@ehisod](https://discourse.joplinapp.org/u/ehisod)\
**Post date:** [16 December 2021 09:35 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/15 "2021-12-16T09:35:04Z")

</div>

The py file execution screenshot:

 ![Joplin Capture after py edit 2](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/0/08a54cc696ac824714aa143ed2aae5eafa1f79a1.jpeg)

Thanks.

---

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [18 December 2021 22:08 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/16 "2021-12-18T22:08:17Z")

</div>

Could you double check that you deleted the localization data in the database?

---

<div class="post-metadata">

**Author:** ![ehisod](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@ehisod](https://discourse.joplinapp.org/u/ehisod)\
**Post date:** [19 December 2021 11:38 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/17 "2021-12-19T11:38:56Z")

</div>

Yeah, I did that as per deleting the longitude and latitude.

---

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [20 December 2021 05:48 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/18 "2021-12-20T05:48:46Z")

</div>

Hmmm, I'm sorry but at this point I have no more concrete ideas that I can guide you through. I'd have to dig around in your setup a bit.

You've two options:

- You can wait. I remember when I was doing this, and moving your notes is always a kinda urgent thing, so I'll try to push a newer version with more robust error handling so that we can pinpoint what's going wrong. I'll try and get it done before New Year's but I'm looking for a job right now, so I've got a bit on my plate. No promises.
- You can send your decoded database to me and I can try and see if I can't get it to work on my setup and then send you a jex file that you can import directly into Joplin. This has the obvious downside that I'd be able to see all your notes. I obviously wouldn't go rummaging in them, but it definitely depends on how comfortable you are a stranger potentially seeing them. I totally get it if this is not something you wanna do but just putting it out as an option in case you don't really care. And of course, also no promises here either. I might not be able to make it work at all. But if I play around with it and it's a minor issue, you could potentially have your notes ready much sooner.

Let me know either way.

---

<div class="post-metadata">

**Author:** ![ratchek](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ratchek/32/6590_2.png) [@ratchek](https://discourse.joplinapp.org/u/ratchek)\
**Post date:** [22 December 2021 04:37 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/19 "2021-12-22T04:37:45Z")

</div>

I just updated the github repo with code that should be a bit easier to debug. Try downloading the new code, running it, and posting the output.

---

<div class="post-metadata">

**Author:** ![draggon](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/draggon/32/18425_2.png) [@draggon](https://discourse.joplinapp.org/u/draggon)\
**Post date:** [6 November 2023 12:07 UTC](https://discourse.joplinapp.org/t/importing-from-colornote/13839/20 "2023-11-06T12:07:57Z")

</div>

Hi,

I wasn't able to obtain a "colornote.db" file, I think ColorNote now uses a different storage format, or atleast that's the case when encryption is enabled. Instead, I had to email the new owner of ColorNote and ask for a CSV file of my online backup, and ask them specifically for the CSV file to include the last modification date of each note. They emailed me a password-protected zip file of my "notes.csv" file. I then modified Ratchek's script so it imports this CSV file into Joplin.  
I've posted the script on github as a fork of Ratcheck's project.

> **[GitHub - shervinemami/colornote\_to\_joplin: Script to import notes.csv from...](https://github.com/shervinemami/colornote_to_joplin)**
>
> Script to import notes.csv from ColorNote into Joplin - GitHub - shervinemami/colornote\_to\_joplin: Script to import notes.csv from ColorNote into Joplin

Cheers, Shervin.

[Next page](https://discourse.joplinapp.org/t/importing-from-colornote/13839.md?page=2)
