Trouble Uploading High Quality Gifs

I’m trying to create short clips on Remnote and while I was able to find a working method, thanks to @Echology on the post Easiest Way to Embed Gif? , the gifs turn out blurry and grainy in the end because of the website I use to convert the video gif. Does anyone know of a way to embed a high quality short clip in Remnote?

What do you mean with “convert the video gif”? From what, to what and why are you converting?

I added another gif embedding method into the original question. Maybe it helps:

On Windows for example ScreenToGif creates high quality, decently optimized gifs.

From what, to what and why are you converting?

I should’ve phrased it better. What I meant to say was the website I used to convert youtube videos to gifs. The reason I’m trying to figure this out is that I’d like to have short, visual representations of concepts I’m writing down when one frame images don’t suffice. The ScreenToGif you suggested works great though.