ASCII Christmas Tree Generator

Type a name and watch your ASCII Christmas tree build itself in 3D: tiers drop into place, a golden ribbon spirals up, lights and gifts appear, and the name lights up on top. Save it as a video for your story.

Your tree is made in your browser. The name is never uploaded.

What is an ASCII Christmas tree?

An ASCII Christmas tree is a Christmas tree drawn only with text characters — letters, numbers and symbols such as *, #, @ and /. ASCII art grew up in early terminals, email and online forums, where pictures had to be built from text, and the Christmas tree has been a favorite holiday subject ever since.

This generator turns the idea into motion: a rotating 3D tree rendered character by character, with your name written on top. Share it as a video or image, or copy one of the plain-text trees below — they paste straight into chats, code comments and README files.

Copy-and-paste ASCII Christmas trees

Six plain-text versions with the same name. Paste them inside a code block so every character lines up.

How to make an ASCII Christmas tree with your name

Three steps, about ten seconds, nothing to install.

  1. 1

    Type a name

    Your name, a friend, your team or a project — up to 16 characters, in any language.

  2. 2

    Pick a tree color

    Forest, Snow, Gold, Rose, Midnight or Aurora. The animation replays from the first tier.

  3. 3

    Save or share it

    Save a vertical video for stories and Reels, save a PNG, copy the text art, or grab the Python code.

ASCII Christmas tree in Python

Prefer a real terminal? This short script prints an ASCII Christmas tree in Python — branches spelled with the name, colored lights that twinkle, gifts by the trunk. It uses only the standard library.

Save it as christmas_tree.py, then run python3 christmas_tree.py. Press Ctrl+C to stop.

# ASCII Christmas tree with your name — save as christmas_tree.py
# Run: python3 christmas_tree.py   (press Ctrl+C to stop)
import os
import random
import time

NAME = "Alex"
MESSAGE = "Merry Christmas, Alex!"
HEIGHT = 12  # keep 11 or more so the gifts fit

GREEN, GOLD, BROWN, RESET = "\033[32m", "\033[93m", "\033[33m", "\033[0m"
LIGHTS = ["\033[91m", "\033[93m", "\033[94m", "\033[95m", "\033[96m"]


def draw_tree():
    letters = NAME.replace(" ", "") or "*"
    lines = [
        " " * (HEIGHT - 1) + GOLD + "\\|/" + RESET,
        " " * (HEIGHT - 2) + GOLD + "--*--" + RESET,
        " " * (HEIGHT - 1) + GOLD + "/|\\" + RESET,
    ]
    i = 0
    for row in range(1, HEIGHT + 1):
        line = " " * (HEIGHT - row)
        for _ in range(2 * row + 1):
            if random.random() < 0.12:
                line += random.choice(LIGHTS) + "o" + RESET
            else:
                line += GREEN + letters[i % len(letters)] + RESET
                i += 1
        lines.append(line)
    gift = lambda: random.choice(LIGHTS) + "[\\/]" + RESET
    trunk = BROWN + "|||" + RESET
    lines.append(" " * (HEIGHT - 1) + trunk)
    lines.append(" " * (HEIGHT - 11) + f"{gift()} {gift()} {trunk} {gift()} {gift()}")
    lines.append("")
    lines.append(GOLD + MESSAGE.center(2 * HEIGHT + 1) + RESET)
    return "\n".join(lines)


if os.name == "nt":
    os.system("")  # turn on colors in the Windows terminal

try:
    while True:
        print("\033[2J\033[H" + draw_tree(), flush=True)
        time.sleep(0.6)
except KeyboardInterrupt:
    print(RESET)

ASCII Christmas tree FAQ

Quick answers about pasting, names, videos and the Python version.

Is this ASCII Christmas tree generator free?

Yes. Making, saving and sharing your tree is free, with no sign-up. Saved images and videos only carry a small site address at the bottom.

Why does my pasted ASCII Christmas tree look crooked?

ASCII art needs a monospaced font, where every character is the same width. In Discord, Slack, GitHub or Reddit, wrap it in a code block with three backticks (```). Where that isn’t possible, use Save PNG instead.

Can I put any name on the tree?

Yes. Names in any language work, including Chinese, Japanese, Korean and Arabic, and emoji too. Wide characters take two columns, so the plain-text trees stay symmetrical.

Can I save the animation as a video?

Yes. Save video replays the whole build and records it in your browser as a vertical 1080×1440 clip (MP4 or WebM, depending on the browser), ready for stories, Reels and TikTok.

Is the Python Christmas tree code free to use?

Yes. Use it for class projects, coding challenges, holiday posts or your own scripts. It runs on Python 3 with no extra packages, on macOS, Linux and Windows.

Do the lights keep blinking after I copy the text?

Copied text is a snapshot of the current frame. For motion, save the video or run the Python script, which redraws its tree every 0.6 seconds.

Is my name saved anywhere?

No. The tree is generated in your browser and the name is never sent to our server.

Want a tree your friends can decorate?

Make your own Christmas tree, share the link, and friends hang messages on it. They open on Christmas Day.