DevFiddleDevFiddle
HomeToolsSnippetsArticles
Explore tools

Small tools and notes for people who build.

A space for meaningful builds, thoughtful notes, and ongoing experiments. Find a utility, save a snippet, or read how something works.

Explore toolsRead articles

Recent tools

Converters, calculators and utilities. Made for specific needs, left here for general use.

Px to em converter

Convert pixel values to relative em units and vice versa based on parent font size.

Open tool
Px to percent converter

Convert pixel dimensions to responsive percentages based on base container width.

Open tool
Px to cm, mm and inches converter

Convert screen pixels to physical print dimensions (inches, cm, mm) with customizable DPI.

Open tool
Pt to px converter

Convert typographic points (pt) to pixels (px) and vice versa across screen resolutions.

Open tool
Color contrast checker

Check contrast ratios between text and background colors against WCAG standards.

Open tool
Hex to RGB converter

Convert hex color codes to RGB and vice versa with real-time preview.

Open tool
Px to rem converter

Turn pixel values into rem units, or go the other way with customizable root font size.

Open tool
Slug generator

Generate SEO-friendly URL slugs from any text.

Open tool
Case converter

Convert text to uppercase, lowercase, title case and more.

Open tool
Aspect ratio calculator

Calculate and convert aspect ratios for images and videos.

Open tool
View all tools

Recent snippets

Bite-sized, battle-tested code snippets, custom hooks, and utility functions.

View all snippets
TypeScript
Debounce Function with TypeScript

A type-safe debounce implementation that delays executing a function until a specified wait time has elapsed.

#TypeScript#Utilities#Performance
View snippet
JavaScript
Deep Clone Objects in Modern JavaScript

Deeply copy nested JavaScript objects and arrays using native structuredClone and fallback recursion.

#JavaScript#Objects#Data Structures
View snippet
React
useLocalStorage Custom React Hook

A robust React hook for syncing component state with window.localStorage across tabs.

#React#Hooks#LocalStorage
View snippet

Recent articles

Thoughts on building things, lessons from projects, and ideas worth writing down.

Read all articles
Guides
OWASP Top 10 – A05: Security Misconfiguration Explained

Discover what security misconfiguration means, why it puts your systems at risk, and how to avoid common configuration mistakes to secure your web applications. Security misconfiguration occurs when security settings in your web servers, applications, databases, or networks are incorrect or incomplete. This leaves systems vulnerable to attacks. It is one of the most common issues in web security and can happen at any level of an application stack.

#Development#DevSecOps#Network#OWASP
Read article
Guides
OWASP Top 10 – A04: Understanding Insecure Design

Insecure design refers to flaws or weaknesses in the way an application or system is planned and built. Unlike bugs or coding errors, insecure design problems come from poor or missing security controls during the early stages of development.This means that even if the code is written correctly, the overall system may still be vulnerable because the design did not consider security risks properly.

#Development#DevSecOps#Network#OWASP
Read article
Guides
OWASP Top 10 – A03: Injection Attacks Explained

Understand what injection attacks are, how they happen, and how to prevent them. This guide explains OWASP Top 10's #3 most dangerous web security risk. Injection attacks happen when untrusted data is sent to a program or database as part of a command or query. If the system fails to properly handle or filter this input, the attacker can trick it into running harmful code. The most common type is SQL Injection, but there are others like Command Injection, LDAP Injection, and XML Injection. These attacks can lead to stolen data, data loss, or complete system compromise.

#Development#DevSecOps#Network#OWASP
Read article
About© DevFiddle 2026