const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
ctx.filter = 'blur(4px)';
ctx.font = '48px serif';
ctx.fillText('Hello world', 50, 100);
div {
filter : blur(/*Blur in pixels*/ 5px);
-webkit-filter: blur(5px);
}