# Preserve text formatting when copying/pasting from google docs

**URL:** <https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281>\
**Category:** Help\
**Created:** [July 1, 2026, 4:23pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281 "2026-07-01T16:23:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitten01](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@amitten01](https://forums.ankiweb.net/u/amitten01)\
**Post date:** [July 1, 2026, 4:23pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281/1 "2026-07-01T16:23:02Z")

</div>

Hi Friends,

I am relatively new to anki and am facing an issue when copying/pasting text from my notes over to anki. Below is what my notes in google docs look like and I am trying to copy/paste it over, but when I do so, anki strips all the text formatting, including the colors.

![Screenshot 2026-07-01 at 11.20.26 AM](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/c/7/c7844e8510d515e059d5265882b8ecd965f2bf80.png)

I have spent like the past hour trying to debug this, including trying like pasting with/wiwthout shift and 2 separate add-ons. I have anki 25.02.5 for reference. My big gripe is how to preserve the text color. It has no issue preserving it when I copy from google docs to word, and I also tried word to anki but same issue persists.

 ![Screenshot 2026-07-01 at 11.22.30 AM](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/5/e546bb12f8847e1c5b005c3ce0e37136d4bb2d54.png)

 ![Screenshot 2026-07-01 at 11.22.17 AM](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/9/39c4ce873119193b2ee17d79b245e2fc0b41cb47.png)

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [July 1, 2026, 4:25pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281/2 "2026-07-01T16:25:23Z")

</div>

Does it also not show with that formatting when you actually study that card?

Because the add card dialog won’t show you what the card will actually be rendered as during studying.

---

<div class="post-metadata">

**Author:** ![kaiu](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kaiu/32/32616_2.png) [@kaiu](https://forums.ankiweb.net/u/kaiu)\
**Post date:** [July 1, 2026, 4:34pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281/3 "2026-07-01T16:34:55Z")

</div>

aaa ssss dddd fffff  
I have dddd in green.

```auto
<span style="color: red;">aaa</span> <span style="color: rgb(0, 176, 240);">ssss</span> <span style="color: rgb(84, 130, 53);"><span style="color:windowtext">dddd</span></span> <span style="color: rgb(237, 125, 49);">fffff</span>
``
It won't display properly in Anki because it

```

color:windowtext

```auto
I think there's a similar reason.
But I'm generally a proponent of color being modifiable by styles, not so rigidly

```

color: rgb(84, 130, 53);

```auto
So when I need to, I prefer to use either bold or italics and then change it in Anki, either by color, or just leave it as is.
But if I do it in Word and then paste it, a lot of stuff gets thrown into the field, and I'm against that.

```

aaa **ssss**

 

_```auto_

_```_

---

<div class="post-metadata">

**Author:** ![amitten01](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@amitten01](https://forums.ankiweb.net/u/amitten01)\
**Post date:** [July 1, 2026, 4:36pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281/4 "2026-07-01T16:36:47Z")

</div>

Correct, it does not show it while studying the card either unfortunately.

---

<div class="post-metadata">

**Author:** ![amitten01](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@amitten01](https://forums.ankiweb.net/u/amitten01)\
**Post date:** [July 1, 2026, 4:37pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281/5 "2026-07-01T16:37:23Z")

</div>

i apologize i dont understand this reply.

---

<div class="post-metadata">

**Author:** ![kaiu](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kaiu/32/32616_2.png) [@kaiu](https://forums.ankiweb.net/u/kaiu)\
**Post date:** [July 1, 2026, 4:45pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281/6 "2026-07-01T16:45:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/2/329a09a132829c79acfd46c614f7d749e9ccb502.png)  
If you click this button, the code will be shown…exactly what’s hidden in Word. Unfortunately, if the code is complex, it will just mess it up unnecessarily. It’s easier to somehow change the design so it’s easier to do in Anki itself, or not do it at all, and let Anki figure it out. I can’t say for sure, but some people like one color, but it can be difficult to customize it later…or you’ll get bored and it will be complicated, so the simpler the better.

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [July 1, 2026, 4:58pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281/7 "2026-07-01T16:58:49Z")

</div>

What does the code look like? See the red circled button kaiu was talking about.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 1, 2026, 10:38pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281/8 "2026-07-01T22:38:49Z")

</div>

I expect this is because the colors that are displayed in Docs or Word aren’t in HTML. Your notes/cards in Anki are written in HTML, so if whatever you pick up in your copy-buffer doesn’t include those HTML tags, there’s nothing that tells Anki what colors to apply to it when you paste it. Basically, those colors aren’t “real” as far as Anki is concerned.

Have you tried saving your notes in a different format that encodes the color-formatting as HTML?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [July 31, 2026, 10:38pm UTC](https://forums.ankiweb.net/t/preserve-text-formatting-when-copying-pasting-from-google-docs/70281/9 "2026-07-31T22:38:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
