- Free
- No sign-up
- Works on any device
No tool matches your search.
- Free
- No sign-up
- Works on any device
Create a QR code for a link, Wi-Fi, WhatsApp, contact and more, or read one from a photo.
- Free
- No sign-up
- Works on any device
Fill in the details to see your QR code.
PNG for phones, chats and websites. SVG and PDF stay sharp at any size, which is best for printing. Tip: point your phone camera at the preview to test it.
3. Style (optional): colors, dots, logo
Choose a photo or screenshot or drag it here
Works with photos of printed codes, screenshots and image files.
Looking for QR codes…
CSS Triangle Generator
Create a pure CSS triangle with the border trick in any of eight directions, choosing the size and color, with a clip-path alternative.
- Free
- No sign-up
- Works on any device
About CSS Triangle Generator
Draw a triangle with CSS alone. The classic method gives an element zero width and height and thick borders: where two borders meet, the browser cuts the corner on a diagonal, so coloring one border and making its neighbours transparent leaves a triangle. The tool writes the correct border widths for eight directions, four pointing up, down, left or right and four right-angled corner triangles, from the width and height you enter. It also gives a clip-path polygon alternative that keeps a real element size, so the shape can hold a background or text. Use it for arrows, tooltips and speech bubbles.
How to use CSS Triangle Generator
- Choose the direction the triangle should point.
- Enter the width and height in pixels and pick the color.
- Copy the border-based CSS, or the clip-path version if the shape needs a real size.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
- Free to embed on your own website, with a ready-made code to copy.
- Available in 10 languages.
Also known as
Frequently asked questions
How do I make the triangle half as tall but keep its width?
Change the height value only. For an upward triangle the side borders stay at half the width and the colored bottom border takes the new height.
Why use clip-path instead of borders?
Clip-path lets the element keep a real width and height, so it can have a gradient, an image or text, and it is simple to animate. Borders work in much older browsers.
How do I put a border around a CSS triangle?
The border trick cannot outline itself. Stack a slightly larger triangle in the outline color behind it, or use an SVG polygon for an outlined shape.
Is CSS Triangle Generator free?
Yes. CSS Triangle Generator on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.
Can I put CSS Triangle Generator on my own website?
Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.